@Test
public void testRemoveGroupFromCertificateFailure400() {

    UserDetails userDetail = getMockUser(true);
    userDetail.setUsername("testuser1");
    ReflectionTestUtils.setField(sSLCertificateService,"vaultAuthMethod", "ldap");
	CertificateGroup certGroup = new CertificateGroup("certificatename", "testgroup","read", "internal");
    String expectedResponse = "{\"errors\":[\"Invalid input values\"]}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body(expectedResponse);
    ResponseEntity<String> responseEntity = sSLCertificateService.removeGroupFromCertificate(certGroup, userDetail);
    assertEquals(HttpStatus.BAD_REQUEST, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}