GroupedPropertiesSerialiser extends PropertiesSerialiser<GroupedProperties> { public String getGroup(final byte[] bytes) throws SerialisationException { return StringUtil.toString(LengthValueBytesSerialiserUtil.deserialise(bytes, 0)); } GroupedPropertiesSerialiser();  GroupedPropertiesSerialiser(final Schema schema); @Override boolean canHandle(final Class clazz); @Override byte[] serialise(final GroupedProperties properties); @Override GroupedProperties deserialise(final byte[] bytes); @Override GroupedProperties deserialiseEmpty(); String getGroup(final byte[] bytes); @Override boolean isConsistent();  }
@Test public void testGetGroup() throws SerialisationException { final GroupedProperties groupedProperties = new GroupedProperties(TestGroups.EDGE); final byte[] serialisedEdge = serialiser.serialise(groupedProperties); assertEquals(TestGroups.EDGE, serialiser.getGroup(serialisedEdge)); }