@Test
public void testLoadClazz() {

    final Class<? extends RepoInitParser> parserClazz =
            DefaultRepoInitFactory.loadClazz(getClass().getClassLoader(),
                    RepoInitParser.class, ParserType.class.getName());
    assertEquals("expect parser class", ParserType.class, parserClazz);
    final Class<? extends RepoInitParser> wrongConstructorClazz =
            DefaultRepoInitFactory.loadClazz(getClass().getClassLoader(),
                    RepoInitParser.class, ParserTypeWrongConstructor.class.getName());
    assertEquals("expect parser class", ParserTypeWrongConstructor.class, wrongConstructorClazz);
    final Class<? extends RepoInitParser> nullClazz =
            DefaultRepoInitFactory.loadClazz(getClass().getClassLoader(),
                    RepoInitParser.class, NeitherType.class.getName());
    assertNull("expect null type", nullClazz);
    final Class<? extends RepoInitParser> nonExistingClazz =
            DefaultRepoInitFactory.loadClazz(getClass().getClassLoader(),
                    RepoInitParser.class, ParserType.class.getName() + "NonExisting");
    assertNull("expect nonExistingClazz type", nonExistingClazz);
}