@Test
public void test_configureClient_successfully() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    AWSClientConfiguration awsClientConfiguration = new AWSClientConfiguration();
    awsClientConfiguration.setAccess_key("accesskey");
    awsClientConfiguration.setSecret_key("secretKey");
    Response response = getMockResponse(HttpStatus.NO_CONTENT, true, "");
    String jsonStr = "{ \"access_key\": \"string\", \"secret_key\": \"string\"}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body("{\"messages\":[\"AWS Client successfully configured \"]}");
    when(reqProcessor.process("/auth/aws/config/configureclient", jsonStr, token)).thenReturn(response);
    when(JSONUtil.getJSON(awsClientConfiguration)).thenReturn(jsonStr);
    ResponseEntity<String> responseEntity = awsAuthService.configureClient(awsClientConfiguration, token);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}