@Test
  public void injectsPagedResourcesAssembler() {

    WebApplicationContext context = WebTestUtils.createApplicationContext(Config.class);
    SampleController controller = context.getBean(SampleController.class);

    assertThat(controller.assembler, is(notNullValue()));

    PagedResources<Resource<Person>> resources = controller.sample(new PageRequest(1, 1));

    assertThat(resources.getLink(Link.REL_PREVIOUS), is(notNullValue()));
    assertThat(resources.getLink(Link.REL_NEXT), is(notNullValue()));
  }
 @Before
 public void setUp() {
   WebTestUtils.initWebTest();
 }