@Test
public void shouldCreateLongFromByteArrayContainingUtf8EncodingOfStringWithLong() throws Exception {

    assertThat(factory.create("0".getBytes("UTF-8")), is(0l));
    assertThat(factory.create("10".getBytes("UTF-8")), is(10l));
    assertThat(factory.create("-103".getBytes("UTF-8")), is(-103l));
    assertThat(factory.create("1003044".getBytes("UTF-8")), is(1003044l));
}