@Test
public void shouldCorrectlyWriteIntegerValues() {

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