@Test
public void postLicense() throws AuthenticationException, UnknownHostException{

	client().addFilter(new HTTPBasicAuthFilter(GrapesTestUtils.USER_4TEST, GrapesTestUtils.PASSWORD_4TEST));
	WebResource resource = client().resource("/" + ServerAPI.LICENSE_RESOURCE);
	ClientResponse response = resource.type(MediaType.APPLICATION_JSON).post(ClientResponse.class, DataModelFactory.createLicense("shorName", "shortLongName", "BlaBla", "sdfsd", "www.somewhere.org"));
	assertNotNull(response);
	assertEquals(HttpStatus.CREATED_201, response.getStatus());
}