@Test
public void testRemoveUserFromCertificate() throws Exception {

    CertificateUser certUser = new CertificateUser("testuser1","read", "certificatename.t-mobile.com", "internal");   	
    String expected = "{\"message\":[\"Successfully removed user from the certificate\"]}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(expected);
    when(sslCertificateService.removeUserFromCertificate(Mockito.any(), Mockito.any())).thenReturn(responseEntityExpected);
    String inputJson = getJSON(certUser);
    MvcResult result = mockMvc.perform(MockMvcRequestBuilders.delete("/v2/sslcert/user")
            .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);
}