### Question:
ClassSchemaBuilder { ClassInfo createClassInfo(Class<?> c) { return createClassInfo(c, Collections.<String>emptySet(), false); } ClassSchemaBuilder();   }### Answer:
@Test public void super_class() { ClassSchemaBuilder.ClassInfo classInfo = classSchemaBuilder.createClassInfo(TestClass.class); Assert.assertEquals(7, classInfo.fieldInfos.length); }
@Test public void mergable_fields() { ClassSchemaBuilder.ClassInfo classInfo = classSchemaBuilder.createClassInfo(ClassWithMergeableFields1.class); Assert.assertEquals(1, classInfo.fieldInfos.length); }
@Test public void mergable_fields_and_super_class() { ClassSchemaBuilder.ClassInfo classInfo = classSchemaBuilder.createClassInfo(ClassWithMergeableFields2.class); Assert.assertEquals(1, classInfo.fieldInfos.length); }
@Test public void mergable_fields_and_super_class_and_volatile() { ClassSchemaBuilder.ClassInfo classInfo = classSchemaBuilder.createClassInfo(ClassWithMergeableFields3.class); Assert.assertEquals(4, classInfo.fieldInfos.length); }
@Test public void unknown_fields() { ClassSchemaBuilder.ClassInfo classInfo = classSchemaBuilder.createClassInfo(ClassWithUnknownFieldTypes.class); Assert.assertEquals(2, classInfo.fieldInfos.length); }
@Test public void abstract_class_test() { try { classSchemaBuilder.createClassInfo(AbstractClass.class); Assert.fail(); } catch (RuntimeException e) {} }
@Test public void interface_class_test() { try { classSchemaBuilder.createClassInfo(InterfaceClass.class); Assert.fail(); } catch (RuntimeException e) {} }