@Test
public void createLessResourceReference() {
TestApplication application = new TestApplication();
WicketTester tester = new WicketTester(application);
try {
ResourceReferenceRegistry registry = application.getResourceReferenceRegistry();
ResourceReference.Key key = new ResourceReference.Key(LessResourceReferenceFactoryTest.class.getName(),
"responsive.less", null, null, null);
ResourceReference reference = registry.getResourceReference(key, false, true);
assertThat(reference, is(instanceOf(LessResourceReference.class)));
} finally {
tester.destroy();
}
}