@Test
public void shouldCorrectlyWriteTimestamp() {

    Timestamp now = new Timestamp(new Date());
    String expected = "{ \"$ts\" : " + now.getTime() + " , \"$inc\" : " + now.getInc() + " }";
    String actual = writer.write(now);
    assertSame(expected, actual);
}