@Test
public void testRemoveGroupFromCertificate() throws Exception {

	CertificateGroup certGroup = new CertificateGroup("certificatename.t-mobile.com", "testgroup","read", "internal");   	
    String expected = "{\"message\":[\"Group is successfully removed from certificate\"]}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(expected);
    when(sslCertificateService.removeGroupFromCertificate(Mockito.any(), Mockito.any())).thenReturn(responseEntityExpected);
    String inputJson = getJSON(certGroup);
    MvcResult result = mockMvc.perform(MockMvcRequestBuilders.delete("/v2/sslcert/group")
            .header("vault-token", token)
            .header("Content-Type", "application/json;charset=UTF-8")
            .requestAttr("UserDetails", userDetails)
            .content(inputJson))
    		.andExpect(status().isOk()).andReturn();
    String actual = result.getResponse().getContentAsString();
    assertEquals(expected, actual);
}