@Test
public void deleteLicense(){

    License license = DataModelFactory.createLicense("test", "longName", "comments", "regexp", "url");
    stubFor(delete(urlEqualTo("/" + ServerAPI.LICENSE_RESOURCE + "/" + license.getName()))
            .willReturn(aResponse()
                    .withStatus(Status.OK.getStatusCode())));
    Exception exception = null;
    try{
        client.deleteLicense(license.getName(), "user", "password");
    }catch (Exception e) {
        exception = e;
    }
    assertNull(exception);
}