@Test
public void testServerName() {

    // given
    Mockito.when(event.getServerName()).thenReturn("servername");
    // when
    final BasicDBObject dbObject = appender.toMongoDocument(event);
    // then
    assertEquals("servername", dbObject.get("serverName"));
}