### Question:
MongoDbApplicationDataRepository implements ApplicationDataRepository { @Override public void delete(ApplicationData item) { template.remove(item, APP_DATA_COLLECTION); }  @Override List<ApplicationData> getApplicationData(List<String> userIds, String appId); @Override ApplicationData getApplicationData(String personId, String appId); @Override Class<? extends ApplicationData> getType(); @Override ApplicationData get(String id); @Override ApplicationData save(ApplicationData item); @Override void delete(ApplicationData item); @Override List<ApplicationData> getAll(); @Override List<ApplicationData> getLimitedList(int offset, int limit); @Override int getCountAll(); void setTemplate(MongoOperations template); static final Class<ApplicationDataImpl> CLASS; }### Answer:
@Test public void delete_Valid(){ ApplicationData item = new ApplicationDataImpl(); template.remove(item, CollectionNames.APP_DATA_COLLECTION); expectLastCall(); replay(template); applicationDataRepository.delete(item); verify(template); }