@Test
public void shouldCreateDoubleFromStringRegardlessOfLeadingAndTrailingWhitespace() {

    assertThat(factory.create("  1  "), is(Double.valueOf(1)));
    assertThat(factory.create("  -1.0  "), is(Double.valueOf(-1.0d)));
    assertThat(factory.create("  100.000101  "), is(Double.valueOf(100.000101d)));
}