@Test
public void test_addAwsRoleToSafe_failure_400() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    UserDetails userDetails = getMockUser(false);
    AWSRole awsRole = new AWSRole("shared/mysafe01","ec2","read");
    String responseJson = "{\"errors\":[\"Invalid path specified\"]}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body(responseJson);
    when(ControllerUtil.isPathValid("shared/mysafe01")).thenReturn(false);
    ResponseEntity<String> responseEntity = selfSupportService.addAwsRoleToSafe(userDetails, token, awsRole);
    assertEquals(HttpStatus.BAD_REQUEST, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}