### Question:
CoreTokenAdapter { public ResultHandler<String, CoreTokenException> delete(String tokenId) throws CoreTokenException { debug("Delete: queued delete {0}", tokenId); final ResultHandler<String, CoreTokenException> deleteHandler = handlerFactory.getDeleteHandler(); dispatcher.delete(tokenId, deleteHandler); return deleteHandler; } @Inject  CoreTokenAdapter(TokenBlobStrategy strategy, TaskDispatcher dispatcher, ResultHandlerFactory handlerFactory,
                            CTSReaperInit reaperInit, @Named(CoreTokenConstants.CTS_DEBUG) Debug debug); ResultHandler<Token, CoreTokenException> create(Token token); Token read(String tokenId); ResultHandler<Token, CoreTokenException> updateOrCreate(Token token); ResultHandler<String, CoreTokenException> delete(String tokenId); Collection<Token> query(final TokenFilter tokenFilter); Collection<PartialToken> attributeQuery(final TokenFilter filter); void deleteOnQuery(final TokenFilter filter);  }### Answer:
@Test public void shouldPerformDelete() throws CoreTokenException { String tokenId = "badger"; adapter.delete(tokenId); verify(mockTaskDispatcher).delete(eq(tokenId), nullable(ResultHandler.class)); }
@Test public void shouldPerformDelete() throws CoreTokenException { String tokenId = "badger"; adapter.delete(tokenId); verify(mockTaskDispatcher).delete(eq(tokenId), any(ResultHandler.class)); }