@Test
public void testRemoveUserFromCertificateFailureIfNotvalidUser() {

    UserDetails userDetail = null;
	CertificateUser certUser = new CertificateUser("testuser1","write", "certificatename.t-mobile.com", "internal");
    String expectedResponse = "{\"errors\":[\"Access denied: No permission to remove user from this certificate\"]}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body(expectedResponse);
    ResponseEntity<String> responseEntity = sSLCertificateService.removeUserFromCertificate(certUser, userDetail);
    assertEquals(HttpStatus.BAD_REQUEST, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}