@Test
public void testBitFieldNames() throws Exception {

    Message m = new Message(null);
    assertEquals(0, MessageUtil.bitFieldNames(m).size());
    m.addField(new Field(m)); // 1
    assertEquals(1, MessageUtil.bitFieldNames(m).size());
    for (int i = 0; i < 31; i++) {
        m.addField(new Field(m)); // 32
    }
    assertEquals(1, MessageUtil.bitFieldNames(m).size());
    m.addField(new Field(m)); // 33
    List<String> bitFieldNames = MessageUtil.bitFieldNames(m);
    assertEquals(2, bitFieldNames.size());
    assertEquals("__bitField0", bitFieldNames.get(0));
    assertEquals("__bitField1", bitFieldNames.get(1));
}