@Test
public void getAllLicenseNames() throws UnknownHostException{		

	final List<String> names = new ArrayList<String>();
       names.add("licenseId");
       when(repositoryHandler.getLicenseNames((FiltersHolder) anyObject())).thenReturn(names);
	WebResource resource = client().resource("/" + ServerAPI.LICENSE_RESOURCE + ServerAPI.GET_NAMES);
	ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
	assertNotNull(response);
	assertEquals(HttpStatus.OK_200, response.getStatus());
       List<?> licenses = (List<?>)response.getEntity(List.class);
	assertNotNull(licenses);
	assertEquals(1, licenses.size());
	assertEquals("licenseId", licenses.get(0));
}