public class DoubleTryParserTest {
@Test(expected = ClassCastException.class)
public void passingNonStringToErasureYieldsException() {
Delegate d = new DoubleTryParser();
d.perform(new Object());
}
@Test
public void parsingNullStringYieldsNothing() {
final Maybe<Double> got = new DoubleTryParser().perform(null);