@Test
public void test_readAppRoleDetails() throws Exception {

ring role_name = "testapprole01";
ring vaultToken = "5PDrOhsy4ig8L3EpsJZSLAMg";
	String role_id_response = "{\n" + 
			"  \"appRole\": {\n" + 
			"    \"role_name\": \"testapprole01\",\n" + 
			"    \"policies\": [\n" + 
			"      \"string\"\n" + 
			"    ],\n" + 
			"    \"bind_secret_id\": true,\n" + 
			"    \"secret_id_num_uses\": \"0\",\n" + 
			"    \"secret_id_ttl\": \"0\",\n" + 
			"    \"token_num_uses\": 0,\n" + 
			"    \"token_ttl\": 0,\n" + 
			"    \"token_max_ttl\": 0\n" + 
			"  },\n" + 
			"  \"role_id\": \"generated_role_id\",\n" + 
			"  \"accessorIds\": [\n" + 
			"    \"accesssor-for-generated-role-id\"\n" + 
			"  ],\n" + 
			"  \"appRoleMetadata\": {\n" + 
			"    \"path\": \"metadata/approle/testapprole01\",\n" + 
			"    \"data\": {\n" + 
			"      \"name\": \"myvaultapprole\",\n" + 
			"      \"createdBy\": \"testuser1\"\n" + 
			"    }\n" + 
			"  }\n" + 
			"}";
	StringBuilder responseMessage = new StringBuilder(role_id_response);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseMessage.toString());
    when(selfSupportService.readAppRoleDetails(eq(vaultToken), Mockito.any(), Mockito.any())).thenReturn(responseEntityExpected);
    mockMvc.perform(MockMvcRequestBuilders.get("/v2/ss/approle/"+role_name)
            .header("vault-token", vaultToken)
            .header("Content-Type", "application/json;charset=UTF-8"))
    		.andExpect(status().isOk())
    		.andExpect(content().string(containsString(responseMessage.toString())));
}