// Path: cal10n-api/src/test/java/ch/qos/cal10n/sample/Labels.java
// @BaseName("labels")
// public enum Labels {
//   L0, L1;
// }
// 
// Path: cal10n-api/src/test/java/ch/qos/cal10n/sample/Colors.java
// @BaseName("colors")
// @LocaleData( { @Locale("en_UK"), @Locale("fr") })
// public enum Colors {
//   // sub-class for testing purposes
//   RED {
// 
//   },
//   BLUE, GREEN;
// }
// 
// Path: cal10n-api/src/test/java/ch/qos/cal10n/sample/Minimal.java
// @BaseName("minimal")
// public enum Minimal {
//   A;
// }


import ch.qos.cal10n.sample.Colors;
import ch.qos.cal10n.sample.Minimal;
import ch.qos.cal10n.sample.Host.OtherColors;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.util.Locale;
import ch.qos.cal10n.sample.Labels;
import org.junit.Test;
    val = rbbmc.getMessage(mpo);
    assertEquals("violets are blue", val);

    mpo = new MessageParameterObj(Colors.GREEN, "apples");
    val = rbbmc.getMessage(mpo);
    assertEquals("apples are green", val);
  }

  @Test
  public void failedRBLookup() {

    MessageConveyor mc = new MessageConveyor(Locale.CHINA);
    try {
      mc.getMessage(Colors.BLUE);
      fail("missing exception");
    } catch (MessageConveyorException e) {
      assertEquals(
          "Failed to locate resource bundle [colors] for locale [zh_CN] for enum type [ch.qos.cal10n.sample.Colors]",
          e.getMessage());
    }
  }
  
  @Test
  public void minimal() {
    MessageConveyor mc = new MessageConveyor(Locale.ENGLISH);
    assertEquals("A", mc.getMessage(Minimal.A));
  }


  @Test
// Path: cal10n-api/src/test/java/ch/qos/cal10n/sample/Labels.java
// @BaseName("labels")
// public enum Labels {
//   L0, L1;
// }
// 
// Path: cal10n-api/src/test/java/ch/qos/cal10n/sample/Colors.java
// @BaseName("colors")
// @LocaleData( { @Locale("en_UK"), @Locale("fr") })
// public enum Colors {
//   // sub-class for testing purposes
//   RED {
// 
//   },
//   BLUE, GREEN;
// }
// 
// Path: cal10n-api/src/test/java/ch/qos/cal10n/sample/Minimal.java
// @BaseName("minimal")
// public enum Minimal {
//   A;
// }


// Path: cal10n-api/src/test/java/ch/qos/cal10n/MessageConveyorTest.java
import ch.qos.cal10n.sample.Colors;
import ch.qos.cal10n.sample.Minimal;
import ch.qos.cal10n.sample.Host.OtherColors;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.util.Locale;
import ch.qos.cal10n.sample.Labels;
import org.junit.Test;

    val = rbbmc.getMessage(mpo);
    assertEquals("violets are blue", val);

    mpo = new MessageParameterObj(Colors.GREEN, "apples");
    val = rbbmc.getMessage(mpo);
    assertEquals("apples are green", val);
  }

  @Test
  public void failedRBLookup() {

    MessageConveyor mc = new MessageConveyor(Locale.CHINA);
    try {
      mc.getMessage(Colors.BLUE);
      fail("missing exception");
    } catch (MessageConveyorException e) {
      assertEquals(
          "Failed to locate resource bundle [colors] for locale [zh_CN] for enum type [ch.qos.cal10n.sample.Colors]",
          e.getMessage());
    }
  }
  
  @Test
  public void minimal() {
    MessageConveyor mc = new MessageConveyor(Locale.ENGLISH);
    assertEquals("A", mc.getMessage(Minimal.A));
  }


  @Test
  public void specialCharacters() {