Parameter { public final int getIndex() { return index; } protected  Parameter(FormatOptions options, int index); final int getIndex(); final void accept(ParameterVisitor visitor, Object[] args); abstract String getFormat();  }
@Test public void testSingleArgumentParameter() { Parameter p0 = new TestParameter(FormatOptions.getDefault(), 0); Parameter p1 = new TestParameter(FormatOptions.getDefault(), 1); assertThat(p0.getIndex()).isEqualTo(0); assertThat(p1.getIndex()).isEqualTo(1); }