### Question:
AllUserIDs extends AbstractALSResource { @GET @Path("/allIDs") @Produces({MediaType.TEXT_PLAIN, "text/csv", MediaType.APPLICATION_JSON}) public Collection<String> get() throws OryxServingException { return getALSServingModel().getAllUserIDs(); }  @GET @Path("/allIDs") @Produces({MediaType.TEXT_PLAIN, "text/csv", MediaType.APPLICATION_JSON}) Collection<String> get();  }### Answer:
@Test public void testAllItemIDs() { List<String> users = target("/user/allIDs").request() .accept(MediaType.APPLICATION_JSON_TYPE).get(LIST_STRING_TYPE); Assert.assertEquals(7, users.size()); for (int user = 0; user < 7; user++) { OryxTest.assertContains(users, "U" + user); } }
@Test public void testAllUserIDsCSV() { String response = target("/user/allIDs").request().get(String.class); Assert.assertEquals(7, response.split("\n").length); }