### Question:
MessageFilterRegistry { public MessageFilter getMessageFilter(PlatformMessage message) { MessageFilter filter = filters.get(message.getMessageType()); return filter == null ? fallbackFilter : filter; } @Inject  MessageFilterRegistry(Set<MessageFilter> filters); MessageFilter getMessageFilter(PlatformMessage message);  }### Answer:
@Test public void testListDevices() { MessageFilter filter = registry.getMessageFilter(AuthzFixtures.createListDevices()); assertTrue(filter instanceof ListDevicesResponseMessageFilter); }
@Test public void testUnknown() { MessageFilter filter = registry.getMessageFilter(AuthzFixtures.createSwitchOn(UUID.randomUUID())); assertTrue(filter instanceof DefaultMessageFilter); }