ParameterQuery extends ParameterNoBody { @Override public void validate() throws APIRestGeneratorException { if (this.isAutoInjected()) { String errorString = "Auto Injection is not implemented for query parameters" ; ParameterQuery.LOGGER.error(errorString) ; throw new APIRestGeneratorException(errorString) ; } } ParameterQuery(final String name,
						  final String alias,
						  final String description,
						  final String required,
						  final String type,
						  final String autoInjected); @Override void validate(); @Override String getClassName();  }
@Test(expected = APIRestGeneratorException.class) public void invalidParameterQueryAutoinjectedTrue() throws APIRestGeneratorException { final ParameterQuery parameterQuery = new ParameterQuery(ConstantsTest.NAME, ConstantsTest.ALIAS, ConstantsTest.DESCRIPTION, ConstantsTest.REQUIRED, ConstantsTest.TYPE, "true") ; parameterQuery.validate() ; }