@SneakyThrows
@Test
void getPrivateProfileTest() {

    when(userProfile.privateProfile(eq(new UserIDAuth(TEST_USER, TEST_PASS))))
        .thenReturn(mock(UserPrivateProfile.class));
    mvc.perform(get("/user/privateProfile")
        .contentType(MediaType.APPLICATION_JSON)
        .accept(MediaType.APPLICATION_JSON)
        .characterEncoding("UTF-8")
        .header("user", TEST_USER)
        .header("password", TEST_PASS)
        .header("token", token)
    )
        .andExpect(status().isOk());
    verify(userProfile).privateProfile(
        eq(new UserIDAuth(TEST_USER, TEST_PASS))
    );
}