@Test
public void shouldCreateDoubleFromByteArrayContainingUtf8EncodingOfStringWithDouble() throws Exception {

    assertThat(factory.create("0.1".getBytes("UTF-8")), is(0.1d));
    assertThat(factory.create("1".getBytes("UTF-8")), is(1.0d));
    assertThat(factory.create("-1.03".getBytes("UTF-8")), is(-1.03));
    assertThat(factory.create("1003044".getBytes("UTF-8")), is(1003044.d));
}