@Before
public void setUp() throws Exception {
provider = mock(ParameterNameProvider.class);
deserializer = new XStreamXMLDeserializer(provider, XStreamBuilderImpl.cleanInstance());
DefaultResourceClass resourceClass = new DefaultResourceClass(DogController.class);
DefaultResourceClass resourcePersonClass = new DefaultResourceClass(PersonController.class);
woof = new DefaultResourceMethod(resourceClass, DogController.class.getDeclaredMethod("woof"));
bark = new DefaultResourceMethod(resourceClass, DogController.class.getDeclaredMethod("bark", Dog.class));
jump = new DefaultResourceMethod(resourceClass, DogController.class.getDeclaredMethod("jump", Dog.class, Integer.class));
dropDead = new DefaultResourceMethod(resourceClass, DogController.class.getDeclaredMethod("dropDead", Integer.class, Dog.class));