### Question:
UserResourceAssembler extends ResourceAssembler<User, UserResource> { @Override protected UserResource createResource(User user) { return new UserResource(user.getName(), user.getCurrency()); } @Autowired  UserResourceAssembler(List<ResourceLinks<User>> resourceLinks);   }### Answer:
@Test public void createResource() throws Exception { UserResource userResource = testSubject.createResource(new User(NAME, CURRENCY)); assertThat(userResource.getName()).isEqualTo(NAME); assertThat(userResource.getCurrency()).isEqualTo(CURRENCY); }