@Test
public void test_getSafe_failure_400() {

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