### Question:
MongoClientDecorator implements TestClassDecorator { @Override public void afterAll(final TestInvocation invocation) throws Exception { final ExecutionContext context = invocation.getContext(); final MongoClient client = (MongoClient) context.getData(Constants.KEY_MONGO_CLIENT); context.storeData(Constants.KEY_MONGO_CLIENT, null); client.close(); }  @Override int getPriority(); @Override boolean isConfigurationSupported(final ExecutionContext ctx); @Override void beforeAll(final TestInvocation invocation); @Override void afterAll(final TestInvocation invocation);  }### Answer:
@Test public void testAfterTest() throws Throwable { decorator.afterAll(invocation); verify(mongoClient).close(); verify(ctx).storeData(eq(Constants.KEY_MONGO_CLIENT), isNull()); }