ProtocolServiceLookup { public SetConfigurationObjectService lookupSetService(final Protocol protocol) throws ProtocolAdapterException { return this.lookupProtocolService(SetConfigurationObjectService.class, protocol); } ProtocolServiceLookup(final List<ProtocolService> protocolServices); GetConfigurationObjectService lookupGetService(final Protocol protocol); SetConfigurationObjectService lookupSetService(final Protocol protocol);  }
@Test public void lookupGetServiceNotFound() { final Protocol protocol = Protocol.OTHER_PROTOCOL; assertThatExceptionOfType(ProtocolAdapterException.class).isThrownBy( () -> this.instance.lookupSetService(protocol)); }