@Test
public void test_createfolder() throws Exception {

    String inputJson ="{\"path\":\"users/safe1\",\"data\":{\"default\":\"default\"}}";
    String responseJson = "{\"messages\":[\"Folder created \"]}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseJson);
    when(safesService.createfolder(eq("5PDrOhsy4ig8L3EpsJZSLAMg"), Mockito.any())).thenReturn(responseEntityExpected);
    mockMvc.perform(MockMvcRequestBuilders.post("/v2/sdb/folder?path=users/safe1")
            .header("vault-token", "5PDrOhsy4ig8L3EpsJZSLAMg")
            .header("Content-Type", "application/json;charset=UTF-8")
            .content(inputJson))
            .andExpect(status().isOk())
            .andExpect(content().string(containsString(responseJson)));
}