ProtocolServiceLookup { public GetConfigurationObjectService lookupGetService(final Protocol protocol) throws ProtocolAdapterException { return this.lookupProtocolService(GetConfigurationObjectService.class, protocol); } ProtocolServiceLookup(final List<ProtocolService> protocolServices); GetConfigurationObjectService lookupGetService(final Protocol protocol); SetConfigurationObjectService lookupSetService(final Protocol protocol);  }
@Test public void lookupGetService() throws ProtocolAdapterException { final Protocol protocol = Protocol.DSMR_4_2_2; final GetConfigurationObjectService result = this.instance.lookupGetService(protocol); assertThat(result).isSameAs(this.getService); }