@Test
public void shouldCorrectlyWriteDoubleValues() {

    assertSame("10.01", writer.write(10.01d));
    assertSame("0.0", writer.write(0.0d));
    assertSame("-1.0135", writer.write(-1.0135d));
    assertSame(Double.toString(Double.MAX_VALUE), writer.write(Double.MAX_VALUE));
    assertSame(Double.toString(Double.MIN_VALUE), writer.write(Double.MIN_VALUE));
}