### Question:
CoreTokenResource implements CollectionResourceProvider { public Promise<ResourceResponse, ResourceException> deleteInstance(Context serverContext, String tokenId, DeleteRequest deleteRequest) { String principal = PrincipalRestUtils.getPrincipalNameFromServerContext(serverContext); try { store.deleteAsync(tokenId); Map<String, String> result = new HashMap<String, String>(); result.put(TOKEN_ID, tokenId); ResourceResponse resource = newResourceResponse( tokenId, String.valueOf(currentTimeMillis()), new JsonValue(result)); debug("DELETE by {0}: Deleted token resource with ID: {1}", principal, tokenId); return newResultPromise(resource); } catch (CoreTokenException e) { error(e, "DELETE by {0}: Error deleting token resource with ID: {1}", principal, tokenId); return generateException(e).asPromise(); } } CoreTokenResource(JSONSerialisation serialisation, CTSPersistentStore store, Debug debug); Promise<ResourceResponse, ResourceException> createInstance(Context serverContext,
            CreateRequest createRequest); Promise<ResourceResponse, ResourceException> deleteInstance(Context serverContext, String tokenId,
            DeleteRequest deleteRequest); Promise<ResourceResponse, ResourceException> readInstance(Context serverContext, String tokenId,
            ReadRequest readRequest); Promise<ResourceResponse, ResourceException> updateInstance(Context serverContext, String tokenId,
            UpdateRequest updateRequest); Promise<QueryResponse, ResourceException> queryCollection(Context serverContext,
            QueryRequest queryRequest, QueryResourceHandler queryResultHandler); Promise<ResourceResponse, ResourceException> patchInstance(Context serverContext, String s,
            PatchRequest patchRequest); Promise<ActionResponse, ResourceException> actionInstance(Context serverContext, String s,
            ActionRequest actionRequest); Promise<ActionResponse, ResourceException> actionCollection(Context serverContext,
            ActionRequest actionRequest); static final String DEBUG_HEADER; }### Answer:
@Test public void shouldDeleteTokenBasedOnTokenId() throws CoreTokenException { String one = "one"; resource.deleteInstance(null, one, mock(DeleteRequest.class)); verify(mockStore).deleteAsync(one); }