### Question:
RBuilder { public RResourceMapping buildR(Collection<? extends ASTType> rInnerTypes) { RResourceMapping resourceMapping = new RResourceMapping(); for (ASTType rInnerType : rInnerTypes) { log.debug("Mapping R: " + rInnerType); for (ASTField idField : rInnerType.getFields()) { resourceMapping.addResource(rInnerType, idField.getName(), (Integer) idField.getConstantValue()); } } return resourceMapping; } @Inject  RBuilder(Logger log); RResourceMapping buildR(Collection<? extends ASTType> rInnerTypes);  }### Answer:
@Test public void testBuild() { RResourceMapping rResourceMapping = rBuilder.buildR(Collections.singleton(idInnerType)); ResourceIdentifier resourceIdentifier = rResourceMapping.getResourceIdentifier(RTest.id1); assertEquals("id1", resourceIdentifier.getName()); assertEquals(idInnerType, resourceIdentifier.getRInnerType()); }