@Test
    public void testInvalidType() throws Exception {
        final Properties p = new Properties();
        p.setProperty("type", "java.lang.String");
        final Properties[] configs = new Properties[]{p};
        final FilterFactory ff = new FilterFactory(configs);
        try {
            final Filter[] filters = ff.getInstances(new MockConnectionProcessor());
        } catch (Throwable t) {
            Assert.assertTrue(t.getMessage().indexOf("trouble creating an instance of'java.lang.String'") != -1);
        }
    }