private MethodSpec methodOneIllegalParam(ClassName className,
Method method, Param param, int orderTest) {
String methodName = String
.format("When_Call_%s_With_Illegal_%s_Then_Get_Exception", method.name, param.name);
MethodSpec.Builder builder = MethodSpec.methodBuilder(methodName)
.addAnnotation(Test.class)
.addAnnotation(AnnotationSpec.builder(Order.class)
.addMember("value", "$L", orderTest)
.build())
.addModifiers(Modifier.PUBLIC)
.returns(void.class);
initializeRobot(className, method, builder);
variablesForParams(method.params, param, builder);
response(className, method, true, builder);
return builder.build();
}