### Question:
SeedResource { @GET public String getSeeds() { return SEED_JOINER.join(service.getSeeds(ring)); } @Inject  SeedResource(SeedService service, @Assisted CassandraRing ring); @GET String getSeeds();  }### Answer:
@Test public void getSeeds() { expect(service.getSeeds(ring)).andReturn(ImmutableSet.of("host1", "host2", "host3")); replayAll(); assertEquals("host1,host2,host3", resource.getSeeds()); }