ParameterBody extends Parameter { @Override public void validate() throws APIRestGeneratorException { if (this.isAutoInjected()) { String errorString = "Auto Injection is not implemented for body parameters" ; ParameterBody.LOGGER.error(errorString) ; throw new APIRestGeneratorException(errorString) ; } } ParameterBody(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 invalidParameterBodyAutoinjectedTrue() throws APIRestGeneratorException { final ParameterBody parameterBody = new ParameterBody(ConstantsTest.NAME, ConstantsTest.ALIAS, ConstantsTest.DESCRIPTION, ConstantsTest.REQUIRED, ConstantsTest.TYPE, "true") ; parameterBody.validate() ; }