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