    @Test
    public void newConnectionSpecInstanceCalledWithTwoArgumentConstructor() {

        TestConnectionSpecImpl spec = (TestConnectionSpecImpl)
                factory.newConnectionSpecInstance(
                        TestConnectionSpecImpl.class,
                        new Class<?>[]{int.class, String.class},
                        new Object[]{4711, "property2"});

        assertThat(spec.property1).isEqualTo(4711);
        assertThat(spec.property2).isEqualTo("property2");
    }