LogCollectorApp extends App { List<String> allowedOrigins(String value) { return parseList(value); }    }
@Test void allowedOrigins() { List<String> origins = app.allowedOrigins("origin1, \norigin2 ,\n\rorigin3"); assertThat(origins).containsExactly("origin1", "origin2", "origin3"); }