Generate Java classes for scenarios and ensure that they compile