@Test
public void testNewParser() {

    assertNull("null for null",
            new DefaultRepoInitFactory(null).newParser());
    assertNull("null for wrong constructor",
            new DefaultRepoInitFactory(ParserTypeWrongConstructor.class)
                    .newParser());
    assertNotNull("expect non null", new DefaultRepoInitFactory(ParserType.class).newParser());
}