@Test
public void canInjectADependencyProvidedByVraptor() throws Exception {

	thereAreNoParameters();
	ResourceMethod resourceMethod = DefaultResourceMethod.instanceFor(OtherResource.class, OtherResource.class.getDeclaredMethod("logic", NeedsMyResource.class));
	final MyResource providedInstance = new MyResource();
	when(container.canProvide(MyResource.class)).thenReturn(true);
	when(container.instanceFor(MyResource.class)).thenReturn(providedInstance);
	Object[] params = provider.getParametersFor(resourceMethod, errors, null);
	assertThat(((NeedsMyResource)params[0]).getMyResource(), is(sameInstance(providedInstance)));
}