Parameter { protected final FormatOptions getFormatOptions() { return options; } protected  Parameter(FormatOptions options, int index); final int getIndex(); final void accept(ParameterVisitor visitor, Object[] args); abstract String getFormat();  }
@Test public void testGetOptions() throws ParseException { FormatOptions options = FormatOptions.parse("-2.2", 0, 4, false); Parameter p = new TestParameter(options, 0); assertThat(p.getFormatOptions()).isSameInstanceAs(options); }