public static String getClassName(Schema schema) {
    String namespace = schema.getNamespace();
    String name = schema.getName();
    if (namespace == null || "".equals(namespace))
      return name;
    String dot = namespace.endsWith("$") ? "" : "."; // back-compatibly handle $
    return mangle(namespace) + dot + mangleTypeIdentifier(name);
  }
@Test
  void classNameContainingReservedWords() {
    final Schema schema = Schema.createRecord("AnyName", null, "db.public.table", false);

    assertEquals("db.public$.table.AnyName", SpecificData.getClassName(schema));
  }