Finally, let us make sure that the drop method returns false in case of an Exception:
@Test public void givenExceptionWhenDropThenReturnFalse() { doThrow(new MongoException("Bla")).when(mongoCollection).drop(); doReturn(mongoCollection).when(collection).getMongoCollection(); assertFalse(collection.drop()); }