### Question:
ParsedParameters { public static ParsedParameters named(List<String> names) { if (names.contains(ParsedSql.POSITIONAL_PARAM)) { throw new IllegalArgumentException("Named parameters " + "list must not contain positional parameter " + "\"" + ParsedSql.POSITIONAL_PARAM + "\""); } return new ParsedParameters(false, names); } ParsedParameters(boolean positional, List<String> parameterNames); boolean isPositional(); int getParameterCount(); List<String> getParameterNames(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static ParsedParameters named(List<String> names); static ParsedParameters positional(int count);  }### Answer:
@Test public void testFactoryNamedAndPositionalParametersMix() { assertThatThrownBy(() -> ParsedParameters.named(Arrays.asList("a", "b", "?"))) .isInstanceOf(IllegalArgumentException.class) .hasMessage("Named parameters list must not contain positional parameter \"?\""); }