@@ -0,0 +1,886 @@
+package brooklyn.rest.resources;%0A%0Aimport brooklyn.rest.BaseResourceTest;%0Aimport com.sun.jersey.api.client.GenericType;%0Aimport java.util.Set;%0Aimport static org.testng.Assert.assertEquals;%0Aimport static org.testng.Assert.assertTrue;%0Aimport org.testng.annotations.Test;%0A%0Apublic class EntityResourceTest extends BaseResourceTest %7B%0A%0A  @Override%0A  protected void setUpResources() throws Exception %7B%0A    addResource(new EntityResource());%0A  %7D%0A%0A  @Test%0A  public void testListAllEntities() %7B%0A    Set%3CString%3E entities = client().resource(%22/entities%22)%0A        .get(new GenericType%3CSet%3CString%3E%3E() %7B%0A        %7D);%0A    assertTrue(entities.size() %3E 0);%0A  %7D%0A%0A  @Test%0A  public void testFilterListOfEntitiesByName() %7B%0A    Set%3CString%3E entities = client().resource(%22/entities%22)%0A        .queryParam(%22name%22, %22redis%22).get(new GenericType%3CSet%3CString%3E%3E() %7B%0A        %7D);%0A    assertEquals(entities.size(), 3);%0A  %7D%0A%7D%0A

Test for EntityResource