ClassPathModifier implements Option { @OptionsByType.Default public static ClassPathModifier none() { return new ClassPathModifier(true); } ClassPathModifier(boolean useQuotes); String modify(String classPath); String applyQuotes(String classPath); @OptionsByType.Default static ClassPathModifier none(); static ClassPathModifier forCygwin(); static ClassPathModifier forWindows(); static ClassPathModifier forWindowsWithQuotes();  }
@Test public void shouldFindNoneOption() throws Exception { ClassPathModifier none = ClassPathModifier.none(); OptionsByType optionsByType = OptionsByType.of(none); ClassPathModifier modifier = optionsByType.get(ClassPathModifier.class); assertThat(modifier, is(sameInstance(none))); }