### Question:
CassandraInstanceServiceImpl implements CassandraInstanceService { @Override public void delete(String ring, CassandraInstance instance) { dao.delete(ring, instance); } @Inject  CassandraInstanceServiceImpl(CassandraInstanceDao dao); @Override ImmutableSet<CassandraInstance> findAll(String ring); @Override @Nullable CassandraInstance findById(String ring, int id); @Override void save(String ring, CassandraInstance instance); @Override void delete(String ring, CassandraInstance instance);  }### Answer:
@Test public void delete() { CassandraInstance instance = createMock(CassandraInstance.class); dao.delete(RING_NAME, instance); replayAll(); service.delete(RING_NAME, instance); }