Assert.assertEquals(Granularity.FULL, fromString(s1).getGranularity());
Assert.assertNull(fromString("FULL,1,X").getGranularity());
}
private SlotState fromString(String string) {
SlotStateSerializer slotSer = SlotStateSerializer.get();
StringSerializer stringSer = StringSerializer.get();
return slotSer.fromByteBuffer(stringSer.toByteBuffer(string));
}