@Test
public void test_getAuthUrl() throws Exception {

	OidcRequest oidcRequest = new OidcRequest("default", "http://localhost:3000");
	String inputJson =new ObjectMapper().writeValueAsString(oidcRequest);
	String responseMessage = "{\n" +
			"  \"request_id\": \"test-b184-88b8-6ac68f0ab58d\",\n" +
			"  \"lease_id\": \"\",\n" +
			"  \"renewable\": false,\n" +
			"  \"lease_duration\": 0,\n" +
			"  \"data\": {\n" +
			"    \"auth_url\": \"https://login.authdomain.com/test123123/oauth2/v2.0/authorize?client_id=test123123&nonce=123123&redirect_uri=http%3A%2F%2Flocalhost%3A3000&response_type=code&scope=openid+https%3A%2F%2Fgraph.authdomain.com%2F.default+profile&state=test4343545\"\n" +
			"  },\n" +
			"  \"wrap_info\": null,\n" +
			"  \"warnings\": null,\n" +
			"  \"auth\": null\n" +
			"}";
	ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseMessage);
	when(oidcAuthService.getAuthUrl(Mockito.any())).thenReturn(responseEntityExpected);
	mockMvc.perform(MockMvcRequestBuilders.post("/v2/auth/oidc/auth_url")
			.header("vault-token", "testy4ig8L3EpsJZSLAMg")
			.header("Content-Type", "application/json;charset=UTF-8")
			.content(inputJson))
			.andExpect(status().isOk())
			.andExpect(content().string(containsString(responseMessage)));
}