    @Test(expected = IllegalArgumentException.class)
    public void testIllegalListener() throws Exception {

        RegexProxyFactory<DataSource> factory = new RegexProxyFactory<DataSource>(DataSource.class);

        factory.addMethodListener(".*", null);
    }