### Question:
GenDialectRegistry { public static void register(Class<? extends DbmsDialect> dbmsDialectClass, GenDialect genDialect) { if (dbmsDialectClass == null) { throw new NullPointerException("dbmsDialectClass"); } if (genDialect == null) { throw new NullPointerException("genDialect"); } dialectMap.put(dbmsDialectClass.getName(), genDialect); } private  GenDialectRegistry(); static GenDialect getGenDialect(DbmsDialect dbmsDialect); static GenDialect getGenDialect(
            Class<? extends DbmsDialect> dbmsDialectClass); static void register(Class<? extends DbmsDialect> dbmsDialectClass,
            GenDialect genDialect); static void deregister(Class<? extends DbmsDialect> dbmsDialectClass);  }### Answer:
@Test public void testRegister() { MyGenDialect myGenDialect = new MyGenDialect(); GenDialectRegistry.register(MyDialect.class, myGenDialect); assertSame(myGenDialect, GenDialectRegistry .getGenDialect(MyDialect.class)); }