@Test
public void test_getServiceAccountMeta_success() {

    UserDetails userDetails = getMockUser(true);
    String token = userDetails.getClientToken();
    String userPrincipalName = "test";
    String path = "/ad/roles/testacc01/";
    String _path = "metadata/ad/roles/testacc01";
    String expected = "{\n" +
            "  \"app-roles\": {\n" +
            "    \"role1\": \"read\"\n" +
            "  },\n" +
            "  \"managedBy\": \"user11\",\n" +
            "  \"name\": \"testacc01\",\n" +
            "  \"users\": {\n" +
            "    \"user11\": \"sudo\"\n" +
            "  }\n" +
            "}";
    Response response = getMockResponse(HttpStatus.OK, true, expected);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(response.getResponse());
    when(reqProcessor.process("/sdb","{\"path\":\""+_path+"\"}",token)).thenReturn(response);
    ResponseEntity<String> responseEntity = serviceAccountsService.getServiceAccountMeta(token, userDetails, path);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}