@Test
public void test_createSafe_failure_safename_too_short() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    SafeBasicDetails safeBasicDetails = new SafeBasicDetails("sa", "youremail@yourcompany.com", null, "My first safe");
    Safe safe = new Safe("shared/sa",safeBasicDetails);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body("{\"errors\":[\"Invalid Safe name: Please enter minimum 3 characters\"]}");
    when(ControllerUtil.areSDBInputsValid(safe)).thenReturn(true);
    ResponseEntity<String> responseEntity = safesService.createSafe(token, safe);
    assertEquals(HttpStatus.BAD_REQUEST, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}