@Test
public void getConnection_throwsForHls4Device() throws Exception {

    final DlmsDevice device = new DlmsDeviceBuilder().withHls4Active(true).build();
    final DlmsMessageListener listener = new InvocationCountingDlmsMessageListener();
    assertThatExceptionOfType(FunctionalException.class).isThrownBy(() -> {
        this.factory.getConnection(device, listener);
    });
}