@Test
public void test_createfolder_failure_400() {

    String responseJson = "{\"errors\":[\"Invalid path\"]}";
    String path = "shared/mysafe01";
    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body(responseJson);
    when(ControllerUtil.isPathValid(any())).thenReturn(false);
    ResponseEntity<String> responseEntity = safesService.createfolder(token, path);
    assertEquals(HttpStatus.BAD_REQUEST, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}