@Test
public void processesFields() {

    ResourceDescriptor resource = new AbstractResourceDescriptor(SampleRootResource.class);
    List<FieldInjector> fieldInjectors = filterFieldsInsertedByJacocoFrameworkDuringInstrumentation(resource.getFieldInjectors());
    assertEquals(1, fieldInjectors.size());
    FieldInjector fieldInjector = fieldInjectors.get(0);
    assertEquals(String.class, fieldInjector.getParameterClass());
    assertEquals(String.class, fieldInjector.getGenericType());
    assertEquals("default", fieldInjector.getDefaultValue());
    assertEquals(PathParam.class, fieldInjector.getAnnotation().annotationType());
    assertEquals("b", ((PathParam)fieldInjector.getAnnotation()).value());
    assertTrue(fieldInjector.isEncoded());
}