public void shouldInjectForAnnotationConfiguredUnmarshaller() throws Exception
{
ResteasyProviderFactory.pushContext(Injected.class, new Injected(MY_SPECIAL_STRING));
Field declaredField = MyType.class.getDeclaredField("name");
StringParameterInjector injector = new StringParameterInjector(String.class, String.class, "name",
MyType.class, null, declaredField,
declaredField.getAnnotations(), new ResteasyProviderFactory());
assertSame(MY_SPECIAL_STRING, injector.extractValue("ignored"));
}