ConstrProjectInfoBuilderRef implements ProjectInfoBuilder2<T>, BuilderWrapper { @Override public String getName() { return getWrapped().getName(); } ConstrProjectInfoBuilderRef(Class<? extends T> modelType, String wrappedTypeName, Object[] arguments); @Override T getProjectInfo(Object project); @Override String getName(); @Override Object getWrappedObject(); @Override Class<?> getWrappedType();  }
@Test public void testNameWithoutPackage() { TestObj model = new TestObj("MyTestObj"); ProjectInfoBuilder2<TestObj> builderRef = create(TestObj.class, TestInfoBuilder.REL_NAME, model, "MyName"); assertEquals("name", "MyName", builderRef.getName()); }
@Test public void testNameWithPackage() { TestObj model = new TestObj("MyTestObj"); ProjectInfoBuilder2<TestObj> builderRef = create(TestObj.class, TestInfoBuilder.ABS_NAME, model, "MyName"); assertEquals("name", "MyName", builderRef.getName()); }