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

	ResourceMethod method = new DefaultResourceMethod(null, DogAlike.class.getMethod("bark"));
	final DogAlike auau = mock(DogAlike.class);
	final RuntimeException exception = new RuntimeException();
	
	doThrow(exception).when(auau).bark();
	when(info.getParameters()).thenReturn(new Object[0]);
	
	try {
		interceptor.intercept(stack, method, auau);
		Assert.fail();
	} catch (InterceptionException e) {
		assertThat((RuntimeException) e.getCause(), is(equalTo(exception)));
	}
}