@Test public void shouldHandleBinarySetType() throws Exception { final String testXmlString = "<types>" + "<set name=\"biOp\" encodingType=\"uint8\">" + " <choice name=\"Bit0\" description=\"Bit 0\">0</choice>" + " <choice name=\"Bit1\" description=\"Bit 1\">1</choice>" + "</set>" + "</types>"; final Map<String, Type> map = parseTestXmlWithMap("/types/set", testXmlString); final SetType e = (SetType)map.get("biOp"); assertThat(e.name(), is("biOp")); assertThat(e.encodingType(), is(PrimitiveType.UINT8)); assertThat(e.choices().size(), is(2)); assertThat(e.getChoice("Bit1").primitiveValue(), is(PrimitiveValue.parse("1", PrimitiveType.UINT8))); assertThat(e.getChoice("Bit0").primitiveValue(), is(PrimitiveValue.parse("0", PrimitiveType.UINT8))); }