@Test
public void testTimeStamp() {

    // given
    Mockito.when(event.getTimeStamp()).thenReturn(1000L);
    // when
    final BasicDBObject dbObject = appender.toMongoDocument(event);
    // then
    assertEquals(new Date(1000L), dbObject.get("timeStamp"));
}