@Before
public void before() throws Exception
{
resource = new TestResource();
tester.getApplication().getSharedResources().add(SHARED_NAME, resource);
ResourceReference resourceReference = new SharedResourceReference(SHARED_NAME);
mapper = new ResourceMapper("/test/resource", resourceReference);
mapperWithPlaceholder = new ResourceMapper("/test2/${name}/resource", resourceReference);
tester.getApplication().getRootRequestMapperAsCompound().add(mapper);
}