CHAT { @Override public String toString() { try { return ByteUtils.toHexString(toByteArray()); } catch (TLVException ex) { LOG.error(ex.getMessage(), ex); return null; } } CHAT();  CHAT(byte[] chat);  CHAT(TLV tlv); Role getRole(); Map<DataGroup, Boolean> getWriteAccess(); boolean setWriteAccess(DataGroup dataGroup, boolean selected); boolean setWriteAccess(String dataGroup, boolean selected); void setWriteAccess(TreeMap<DataGroup, Boolean> writeAccess); Map<DataGroup, Boolean> getReadAccess(); boolean setReadAccess(DataGroup dataGroup, boolean selected); boolean setReadAccess(String dataGroup, boolean selected); void setReadAccess(TreeMap<DataGroup, Boolean> readAccess); Map<SpecialFunction, Boolean> getSpecialFunctions(); boolean setSpecialFunctions(SpecialFunction specialFunction, boolean selected); boolean setSpecialFunction(String specialFunction, boolean selected); void setSpecialFunctions(TreeMap<SpecialFunction, Boolean> specialFunctions); Map<AccessRight, Boolean> getAccessRights(); boolean setAccessRights(AccessRight accessRight, boolean selected); boolean setAccessRights(String accessRight, boolean selected); void setAccessRights(Map<AccessRight, Boolean> accessRights); void restrictAccessRights(CHAT mask); byte[] toByteArray(); boolean compareTo(CHAT chat); String toHexString(); @Override String toString();  }
@Test(enabled = false) public void testtoString() throws TLVException { Map<CHAT.DataGroup, Boolean> readAccess = chat.getReadAccess(); for (Map.Entry<CHAT.DataGroup, Boolean> entry : readAccess.entrySet()) { System.out.println(entry.getKey() + " " + entry.getValue()); } }