@Test
public void shouldCorrectlyWriteLongValues() {

    assertSame("10", writer.write(10L));
    assertSame("0", writer.write(0L));
    assertSame("-1", writer.write(-1L));
    assertSame(Long.toString(Integer.MAX_VALUE + 10L), writer.write(Integer.MAX_VALUE + 10L));
    assertSame(Long.toString(Integer.MIN_VALUE - 10L), writer.write(Integer.MIN_VALUE - 10L));
    assertSame(Long.toString(Long.MAX_VALUE), writer.write(Long.MAX_VALUE));
    assertSame(Long.toString(Long.MIN_VALUE), writer.write(Long.MIN_VALUE));
}