*/
public class TestPatternFilter extends TestCase
{
public void testAccepts() throws Exception
{
final MethodFilter filter = PatternFilter.getterSetterFilter();
assertTrue( filter.accepts( Date.class.getMethod( "getSeconds", new Class[] {} ) ) );
assertTrue( filter.accepts( Date.class.getMethod( "getMinutes", new Class[] {} ) ) );
assertTrue( filter.accepts( Date.class.getMethod( "setSeconds", new Class[] { Integer.TYPE } ) ) );
assertTrue( filter.accepts( Date.class.getMethod( "setMinutes", new Class[] { Integer.TYPE } ) ) );
assertFalse( filter.accepts( Date.class.getMethod( "toString", new Class[] {} ) ) );
assertFalse( filter.accepts( Date.class.getMethod( "hashCode", new Class[] {} ) ) );
}