@Override
    public boolean accept(File dir, String name) {
        return name.endsWith(".groovy");
    }
@Test
    void testGroovyFileFilter() {

        GroovyFileFilter filter = new GroovyFileFilter();

        assertFalse(filter.accept(new File("/"), "file.mikey"));
        assertTrue(filter.accept(new File("/"), "file.groovy"));
    }