@Test
public void testCheckCertificateStatus() throws Exception {

	String expected = "{\"message\":[\"Certifictae is in Revoked status\"]}";
	ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(expected);
	when(sslCertificateService.checkCertificateStatus(Mockito.anyString(), Mockito.anyString(),
			Mockito.anyObject())).thenReturn(responseEntityExpected);
	MvcResult result = mockMvc
			.perform(MockMvcRequestBuilders.get("/v2/sslcert/checkstatus/certificatename.t-mobile.com/external")
					.header("vault-token", token).header("Content-Type", "application/json;charset=UTF-8")
					.requestAttr("UserDetails", userDetails).content(expected))
			.andExpect(status().isOk()).andReturn();
	String actual = result.getResponse().getContentAsString();
	assertEquals(expected, actual);
}