@Test
public void readEntityAliasById() throws Exception {

    String token = "4EpPYDSfgN2D4Gf7UmNO3nuL";
    String id = "1234-45";
    Response response = getMockResponse(HttpStatus.OK, true, "{\"data\": [\"safeadmin\",\"vaultadmin\"]]");
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK)
            .body("{\"data\": [\"safeadmin\",\"vaultadmin\"]]");
    when(reqProcessor.process("/identity/entity-alias/id", "{\"id\":\"" + id + "\"}", token)).thenReturn(response);
    ResponseEntity<String> responseEntity = oidcAuthService.readEntityAliasById(token, id);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}