@Test
public void test_createSTSRole() throws Exception {

    AWSStsRole awsStsRole = new AWSStsRole();
    awsStsRole.setAccount_id("account_id1");
    awsStsRole.setSts_role("sts_role1");
    String inputJson =new ObjectMapper().writeValueAsString(awsStsRole);
    String responseMessage = "{\"messages\":[\"STS Role created successfully \"]}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseMessage);
    when(awsAuthService.createSTSRole(Mockito.any(), eq("5PDrOhsy4ig8L3EpsJZSLAMg"))).thenReturn(responseEntityExpected);
    mockMvc.perform(MockMvcRequestBuilders.post("/v2/auth/aws/config/sts")
            .header("vault-token", "5PDrOhsy4ig8L3EpsJZSLAMg")
            .header("Content-Type", "application/json;charset=UTF-8")
            .content(inputJson))
            .andExpect(status().isOk())
            .andExpect(content().string(containsString(responseMessage)));
}