public Connector newConnector(String connectorClassOrAlias) {
        Class<? extends Connector> klass = connectorClass(connectorClassOrAlias);
        return newPlugin(klass);
    }
@Test
    public void shouldThrowIfStaticInitializerThrows() {
        assertThrows(ConnectException.class, () -> plugins.newConnector(
                TestPlugin.BAD_PACKAGING_STATIC_INITIALIZER_THROWS_CONNECTOR.className()
        ));
    }