### Question:
CommonSchemaElements implements SchemaFileElement { public final String getPrimaryName() { return primaryName; } protected  CommonSchemaElements(String primaryName,
      Collection<String> names, String oid, String description,
      boolean isObsolete, Map<String, List<String>> extraProperties); static void checkSafeProperties(Map <String,List<String>>
      extraProperties); final String getPrimaryName(); final Set<String> getNormalizedNames(); final Iterable<String> getUserDefinedNames(); final boolean hasName(String lowerName); final String getOID(); final String getNameOrOID(); final String getNormalizedPrimaryNameOrOID(); final boolean hasNameOrOID(String lowerValue); static String getSchemaFile(SchemaFileElement elem); static String getSingleValueProperty(SchemaFileElement elem,
      String propertyName); static void setSchemaFile(SchemaFileElement elem, String schemaFile); final String getDescription(); final boolean isObsolete(); @Override final Map<String, List<String>> getExtraProperties(); static void setExtraProperty(SchemaFileElement elem,
      String name, String value); final void setExtraProperty(String name,
                                     List<String> values); @Override final boolean equals(Object o); @Override final int hashCode(); static String getDefinitionWithFileName(SchemaFileElement elem);  }### Answer:
@Test public final void testGetPrimaryNameDefault() throws Exception { SchemaDefinitionBuilder builder = getBuilder(null, "1.2.3"); CommonSchemaElements d = builder.getInstance(); Assert.assertNull(d.getPrimaryName()); }
@Test public final void testGetPrimaryName() throws Exception { SchemaDefinitionBuilder builder = getBuilder("testType", "1.2.3"); CommonSchemaElements d = builder.getInstance(); Assert.assertEquals(d.getPrimaryName(), "testType"); }