@Test
public void testEncodeFlags() {

    Assert.assertEquals(0, MphChlUtils.encodeFlags(false, false, false));
    Assert.assertEquals(1, MphChlUtils.encodeFlags(true, false, false));
    Assert.assertEquals(2, MphChlUtils.encodeFlags(false, true, false));
    Assert.assertEquals(4, MphChlUtils.encodeFlags(false, false, true));
    Assert.assertEquals(3, MphChlUtils.encodeFlags(true, true, false));
    Assert.assertEquals(5, MphChlUtils.encodeFlags(true, false, true));
}