CliState extends CliClassContainer { public CliOptionContainer getOption(String nameOrAlias) { return this.name2OptionMap.get(nameOrAlias); } CliState(Class<?> stateClass, PojoDescriptorBuilderFactory descriptorBuilderFactory, ReflectionUtil reflectionUtil, AnnotationUtil annotationUtil); CliOptionContainer getOption(String nameOrAlias); List<CliOptionContainer> getOptions(); Collection<CliArgumentContainer> getArguments(); List<CliArgumentContainer> getArguments(CliModeObject mode); Collection<CliOptionContainer> getOptions(CliModeObject mode);  }
@Test public void testContainerStyle() { CliState state = createState(ContainerStyleTest.class); CliOptionContainer option = state.getOption(OPTION_NAME_OPTION); assertThat(option.getContainerStyle(state.getCliStyle())).isEqualTo(CliContainerStyle.MULTIPLE_OCCURRENCE); CliOptionContainer list = state.getOption(OPTION_NAME_LIST); assertThat(list.getContainerStyle(state.getCliStyle())).isEqualTo(CliContainerStyle.COMMA_SEPARATED); }