### Question:
DeserializerRegistryImpl implements DeserializerRegistry { @Override @SuppressWarnings("unchecked") public <T extends OFGeneralDeserializer> T getDeserializer(MessageCodeKey key) { OFGeneralDeserializer deserializer = registry.get(key); if (deserializer == null) { throw new IllegalStateException("Deserializer for key: " + key + " was not found - please verify that all needed deserializers ale loaded correctly"); } return (T) deserializer; }  @Override void init(); @Override @SuppressWarnings("unchecked") T getDeserializer(MessageCodeKey key); @Override void registerDeserializer(MessageCodeKey key, OFGeneralDeserializer deserializer); @Override boolean unregisterDeserializer(MessageCodeKey key);  }### Answer:
@Test(expected=IllegalStateException.class) public void testGetDeserializer(){ DeserializerRegistryImpl registry = new DeserializerRegistryImpl(); registry.init(); registry.getDeserializer(new MessageCodeKey((short) 5000, EncodeConstants.EMPTY_VALUE, MatchV10.class)); Assert.fail(); }