@Test
public void testBuildWithInitStage() throws Exception {

    InitStage stage = new InitStage.Builder().withNs("foo", "http://foo.com").build();
    builder().withInitStage(stage).withInitStage((InitStage[]) null).withInitStages(null)
            .build().initAndInspect(session -> {
        assertEquals("expect namespace uri",
                session.getNamespaceURI("foo"), "http://foo.com");
    });
}