@Test
public void convertsSmartMeteringDtoToDlmsDevice() {

    final SmartMeteringDeviceDto dto = new SmartMeteringDeviceDtoBuilder().build();
    final DlmsDevice result = this.converter.convertTo(dto, null, null);
    final DlmsDevice expected = this.converted(dto);
    Assertions.assertThat(result)
            .isEqualToIgnoringGivenFields(expected, "creationTime", "modificationTime", "version");
    Assertions.assertThat(result.getSecurityKeys())
            .usingElementComparatorIgnoringFields("creationTime", "modificationTime", "version")
            .isEqualTo(expected.getSecurityKeys());
}