### Question:
SimpleQuery extends AbstractAliasedQuery { public static SimpleQuery instance(final String queryString, final List<String> arguments, final int continuationValue) { return new SimpleQuery(queryString, arguments, continuationValue); } private  SimpleQuery(final String queryString, final List<String> arguments, final int continuationValue); static SimpleQuery instance(final String queryString, final List<String> arguments,
			final int continuationValue); static SimpleQuery instanceWithNoArguments(final String queryString, final int continuationValue); static SimpleQuery instanceWithOneArgument(final String queryString, final String arg,
			final int continuationValue); static SimpleQuery instanceWithTwoArguments(final String queryString, final String arg1, final String arg2,
			final int continuationValue);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testInstaceTooManyParms() throws Exception { List<String> parms = new ArrayList<String>(); parms.add("parm1"); parms.add("parm2"); parms.add("parm3"); parms.add("parm4"); parms.add("parm5"); SimpleQuery.instance("query", parms, 0); }
@Test public void testInstanceNullArray() throws Exception { AbstractAliasedQuery sq = SimpleQuery.instance("xxx", null, 0); Assert.assertNotNull("should have initialized blank array", sq.getArguments()); }