SetConfigurationObjectServiceSmr5 extends SetConfigurationObjectService { @Override public boolean handles(final Protocol protocol) { return protocol != null && protocol.isSmr5(); } SetConfigurationObjectServiceSmr5(final DlmsHelper dlmsHelper); @Override boolean handles(final Protocol protocol);  }
@Test public void handles() { assertThat(this.instance.handles(Protocol.SMR_5_0_0)).isTrue(); assertThat(this.instance.handles(Protocol.SMR_5_1)).isTrue(); assertThat(this.instance.handles(Protocol.DSMR_4_2_2)).isFalse(); assertThat(this.instance.handles(Protocol.OTHER_PROTOCOL)).isFalse(); assertThat(this.instance.handles(null)).isFalse(); }