@Test
public void test_configureClient() throws Exception {

    AWSClientConfiguration awsClientConfiguration = new AWSClientConfiguration();
    awsClientConfiguration.setAccess_key("accesskey");
    awsClientConfiguration.setSecret_key("secretKey");
    String inputJson =new ObjectMapper().writeValueAsString(awsClientConfiguration);
    String responseMessage = "{\"messages\":[\"AWS Client successfully configured \"]}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseMessage);
    when(awsAuthService.configureClient(Mockito.any(), eq("5PDrOhsy4ig8L3EpsJZSLAMg"))).thenReturn(responseEntityExpected);
    mockMvc.perform(MockMvcRequestBuilders.post("/v2/auth/aws/config/client")
            .header("vault-token", "5PDrOhsy4ig8L3EpsJZSLAMg")
            .header("Content-Type", "application/json;charset=UTF-8")
            .content(inputJson))
            .andExpect(status().isOk())
            .andExpect(content().string(containsString(responseMessage)));
}