@SneakyThrows
@Test
void removeStorageCredentialsTest() {

    mvc.perform(delete("/user/storages")
        .contentType(MediaType.APPLICATION_JSON)
        .accept(MediaType.APPLICATION_JSON)
        .characterEncoding("UTF-8")
        .content("{}")
        .header("user", TEST_USER)
        .header("password", TEST_PASS)
        .header("token", token)
        .header("storageId", "111")
    )
        .andExpect(status().isOk());
    verify(userProfile).deregisterStorageCredentials(
        eq(new UserIDAuth(TEST_USER, TEST_PASS)),
        eq(new StorageIdentifier("111"))
    );
}