@SneakyThrows
@Test
void addStorageCredentialsTest() {

    mvc.perform(post("/user/storages")
        .contentType(MediaType.APPLICATION_JSON)
        .accept(MediaType.APPLICATION_JSON)
        .characterEncoding("UTF-8")
        .content(Fixture.read("endpoints/storage_creds.json"))
        .header("user", TEST_USER)
        .header("password", TEST_PASS)
        .header("token", token)
    )
        .andExpect(status().isOk());
    verify(userProfile).registerStorageCredentials(
        eq(new UserIDAuth(TEST_USER, TEST_PASS)),
        eq(new StorageIdentifier("AAA")),
        eq(new StorageCredentials("FOO", "BAR"))
    );
}