### Question:
SerializerRegistryImpl implements SerializerRegistry { @Override public <K> void registerSerializer(MessageTypeKey<K> msgTypeKey, OFGeneralSerializer serializer) { if ((msgTypeKey == null) || (serializer == null)) { throw new IllegalArgumentException("MessageTypeKey or Serializer is null"); } OFGeneralSerializer serInRegistry = registry.put(msgTypeKey, serializer); if (serInRegistry != null) { LOG.debug("Serializer for key {} overwritten. Old serializer: {}, new serializer: {}", msgTypeKey, serInRegistry.getClass().getName(), serializer.getClass().getName()); } if (serializer instanceof SerializerRegistryInjector) { ((SerializerRegistryInjector) serializer).injectSerializerRegistry(this); } }  @Override void init(); @Override @SuppressWarnings("unchecked") S getSerializer(MessageTypeKey<K> msgTypeKey); @Override void registerSerializer(MessageTypeKey<K> msgTypeKey, OFGeneralSerializer serializer); @Override boolean unregisterSerializer(MessageTypeKey<K> msgTypeKey);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testRegisterSerializerNoArgs(){ SerializerRegistryImpl serReg = new SerializerRegistryImpl(); serReg.registerSerializer(null, null); }