@Test
public void test_removeUserFromSafe_failure_400() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    String path = "shared/mysafe01";
    SafeUser safeUser = new SafeUser(path, "testuser1","write");
    String jsonStr = "{  \"path\": \"shared/mysafe01\",  \"username\": \"testuser1\",  \"access\": \"write\"}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body("{\"errors\":[\"Invalid 'path' specified\"]}");
    when(JSONUtil.getJSON(safeUser)).thenReturn(jsonStr);
    when(ControllerUtil.isValidSafePath(path)).thenReturn(false);
    ResponseEntity<String> responseEntity = safesService.removeUserFromSafe(token, safeUser, getMockUser(true));
    assertEquals(HttpStatus.BAD_REQUEST, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}