@Test
public void shouldSetNullWhenNullReturnedFromInvokedMethod() throws SecurityException, NoSuchMethodException,
		InterceptionException, IOException {

	ResourceMethod method = new DefaultResourceMethod(null, XController.class.getMethod("method", Object.class));
	final XController x = new XController();
	
	when(info.getParameters()).thenReturn(new Object[] { null });
	interceptor.intercept(stack, method, x);
	verify(stack).next(method, x);
	verify(info).setResult(null);
}