SearchResultsResourceHalLinkFactory extends DiscoveryRestHalLinkFactory<SearchResultsResource> { @Override protected Class<SearchResultsResource> getResourceClass() { return SearchResultsResource.class; }    }
@Test public void testResourceClassIsSetCorrectlyAfterConstructor() throws Exception { assertEquals(SearchResultsResource.class, searchResultsResourceHalLinkFactory.getResourceClass()); }