@Test
public void shouldReturnErrorStatusWhenDatabaseDoesntReturnOKForPing() {

    //given
    when(mongoDatabase.runCommand(new Document().append("ping", 1))).thenReturn(new Document().append("error", 1.0d));
    //when
    final StatusDetail statusDetail = testee.statusDetails().get(0);
    //then
    assertThat(statusDetail.getStatus(), is(ERROR));
    assertThat(statusDetail.getMessage(), containsString("Mongo database unreachable or ping command failed."));
}