DefaultType extends AbstractBaseType { public static @NonNull DefaultType of(final JavaTypeName identifier) { return new DefaultType(identifier); } private  DefaultType(final JavaTypeName identifier); static @NonNull DefaultType of(final JavaTypeName identifier); static @NonNull DefaultType of(final Identifiable<JavaTypeName> type); static @NonNull Type of(final Class<?> type);  }
@Test public void testCreateNewReferencedType() { DefaultType refType = DefaultType.of(JavaTypeName.create("org.opendaylight.yangtools.test", "RefTypeTest")); assertEquals("RefTypeTest", refType.getName()); }
@Test public void testToStringMethod() { DefaultType refType = DefaultType.of(JavaTypeName.create("org.opendaylight.yangtools.test", "RefTypeTest")); assertTrue(refType.toString().contains("RefTypeTest")); }