ConstraintServices { int getIndexFromArgname(String argname) { String num = argname.substring(3); return Integer.parseInt(num); }  ConstraintViolation[] extractViolations(ConstraintViolationException cve);  }
@Test public void testGetIndexFromArgname() { System.out.println("getIndexFromArgname"); int result = instance.getIndexFromArgname("arg0"); assertThat(result).isEqualTo(0); result = instance.getIndexFromArgname("arg10"); assertThat(result).isEqualTo(10); }