assertFalse( validator.isValid( new MyCustomStringImpl( "A79927398713" ), null ) );
}
@Test
public void testIgnoreNonNumeric() throws Exception {
LuhnCheckValidator validator = new LuhnCheckValidator();
LuhnCheck modCheck = createLuhnCheckAnnotation( 0, Integer.MAX_VALUE, -1, true );
validator.initialize( modCheck );
assertTrue( validator.isValid( new MyCustomStringImpl( "A79927398713" ), null ) );
}