public static void main(String[] args) throws Exception {
   ModelStandardTransform transform = new ModelStandardTransform();
   if (transform.getDirection() != ModelStandardTransform.DIRECTION_MIN2MAX)
     throw new RuntimeException(
         "transform.getDirection() doesn't return ModelStandardTransform.DIRECTION_MIN2MAX!");
   if (transform.getPolarity() != ModelStandardTransform.POLARITY_UNIPOLAR)
     throw new RuntimeException(
         "transform.getPolarity() doesn't return ModelStandardTransform.POLARITY_UNIPOLAR!");
   if (transform.getTransform() != ModelStandardTransform.TRANSFORM_LINEAR)
     throw new RuntimeException(
         "transform.getTransform() doesn't return ModelStandardTransform.TRANSFORM_LINEAR!");
 }
 public static void main(String[] args) throws Exception {
   ModelSource src =
       new ModelSource(
           ModelSource.SOURCE_NOTEON_KEYNUMBER,
           ModelStandardTransform.DIRECTION_MAX2MIN,
           ModelStandardTransform.POLARITY_BIPOLAR,
           ModelStandardTransform.TRANSFORM_CONCAVE);
   if (src.getIdentifier() != ModelSource.SOURCE_NOTEON_KEYNUMBER)
     throw new RuntimeException(
         "src.getIdentifier() doesn't return ModelSource.SOURCE_NOTEON_KEYNUMBER!");
   if (!(src.getTransform() instanceof ModelStandardTransform))
     throw new RuntimeException(
         "src.getTransform() doesn't return object which is instance of ModelStandardTransform!");
   ModelStandardTransform trans = (ModelStandardTransform) src.getTransform();
   if (trans.getDirection() != ModelStandardTransform.DIRECTION_MAX2MIN)
     throw new RuntimeException(
         "trans.getDirection() doesn't return ModelStandardTransform.DIRECTION_MAX2MIN!");
   if (trans.getPolarity() != ModelStandardTransform.POLARITY_BIPOLAR)
     throw new RuntimeException(
         "trans.getPolarity() doesn't return ModelStandardTransform.POLARITY_BIPOLAR!");
   if (trans.getTransform() != ModelStandardTransform.TRANSFORM_CONCAVE)
     throw new RuntimeException(
         "trans.getTransform() doesn't return ModelStandardTransform.TRANSFORM_CONCAVE!");
 }