### Question:
ImmutableQuery implements Query { @Override public boolean isEmpty() { return this.parameters.isEmpty(); } private  ImmutableQuery(Map<String, ImmutableQueryParameter> params); @Override boolean isEmpty(); @Override int size(); @Override boolean hasParameter(String paramName); @Override Parameter getParameter(String paramName); @Override String toString(); @Override Set<String> parameterNames();  }### Answer:
@Test public void testQueryIsNotEmptyWhenParametersAreDefined() { assertThat(queryWithParameters().isEmpty(),equalTo(false)); }
@Test public void testQueryIsEmptyWhenNoParametersAreDefined() { assertThat(queryWithoutParameters().isEmpty(),equalTo(true)); }