@Test
@WithMockUser(username="tester", authorities={"CREATE_ACCESSTOKEN"})

public void testSavingAccessTokenWithoutDefaultValues() throws Exception {
     
     AccessToken recoverAt = new AccessToken();
     recoverAt.setId(10L);
     
     Mockito.when(service.save(Mockito.any(AccessTokenPersist.class))).thenReturn(recoverAt);
     
     mockMvc.perform(MockMvcRequestBuilders.post(ConstantsPath.PATH_ACCESS_TOKENS, 10L)
            .content("{\"code\":\"!!@!##1212\",\"app\":{\"id\":10}, \"plans\": [{\"id\": 5}]}")
            .contentType(MediaType.APPLICATION_JSON))
            .andExpect(MockMvcResultMatchers.status().isCreated());
}