@Test
public void entityLookUpSuccess() throws Exception {

    String token = "4EpPYDSfgN2D4Gf7UmNO3nuL";
    OIDCLookupEntityRequest oidcLookupEntityRequest = new OIDCLookupEntityRequest();
    oidcLookupEntityRequest.setId("1223");
    oidcLookupEntityRequest.setAlias_id("123");
    oidcLookupEntityRequest.setAlias_mount_accessor("mount");
    oidcLookupEntityRequest.setAlias_name("alias_name");
    oidcLookupEntityRequest.setName("name");
    String jsonStr = JSONUtil.getJSON(oidcLookupEntityRequest);
    OIDCEntityResponse oidcEntityResponse = new OIDCEntityResponse();
    oidcEntityResponse.setEntityName("entity_63f119d2");
    List<String> policies = new ArrayList<>();
    policies.add("safeadmin");
    oidcEntityResponse.setPolicies(policies);
    Response response = getMockResponse(HttpStatus.OK, true, "\"{\\\"entityName\\\":\\\"entity_63f119d2\\\",\\\"policies\\\":[\\\"safeadmin\\\"]}\"");
    String responseInput = "\"{\\\"entityName\\\":\\\"entity_63f119d2\\\",\\\"policies\\\":[\\\"safeadmin\\\"]}\"";
    when(OIDCUtil.getEntityLookUpResponse(responseInput)).thenReturn(oidcEntityResponse);
    ResponseEntity<OIDCEntityResponse> responseEntityExpected = ResponseEntity.status(HttpStatus.OK)
            .body(oidcEntityResponse);
    when(OIDCUtil.entityLookUp(token, oidcLookupEntityRequest)).thenReturn(responseEntityExpected);
    ResponseEntity<OIDCEntityResponse> responseEntity = oidcAuthService.entityLookUp(token, oidcLookupEntityRequest);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}