@Test
public void test_loginWithApprole_successfully() {

    String expectedLoginResponse = "{  \"auth\": {   \"renewable\": true,    \"lease_duration\": 2764800,    \"metadata\": {},    \"policies\": [      \"default\"    ],    \"accessor\": \"5d7fb475-07cb-4060-c2de-1ca3fcbf0c56\",    \"client_token\": \"98a4c7ab-b1fe-361b-ba0b-e307aacfd587\"  }}";
    Response response =getMockResponse(HttpStatus.OK, true, expectedLoginResponse);
    AppRoleIdSecretId appRoleIdSecretId = new AppRoleIdSecretId("approle1", "5973a6de-38c1-0402-46a3-6d76e38b773c");
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(expectedLoginResponse);
    String jsonStr = "{\"role_id\":\"approle1\",\"secret_id\":\"5973a6de-38c1-0402-46a3-6d76e38b773c\"}";
    
    when(JSONUtil.getJSON(appRoleIdSecretId)).thenReturn(jsonStr);
    when(reqProcessor.process("/auth/approle/login",jsonStr,"")).thenReturn(response);
    ResponseEntity<String> responseEntityActual = appRoleService.login(appRoleIdSecretId);
    assertEquals(HttpStatus.OK, responseEntityActual.getStatusCode());
    assertEquals(responseEntityExpected, responseEntityActual);
    
}