@Test
public void addMeterDeviceExists() {

    // SETUP
    when(this.smartMeteringDeviceRepository.findByDeviceIdentification(DEVICE_IDENTIFICATION))
            .thenReturn(this.smartMeter);
    // CALL
    try {
        this.instance.addMeter(this.deviceMessageMetadata, this.addSmartMeterRequest);
    } catch (final FunctionalException e) {
        assertThat(e.getExceptionType()).isEqualTo(FunctionalExceptionType.EXISTING_DEVICE);
        assertThat(e.getComponentType()).isEqualTo(ComponentType.DOMAIN_SMART_METERING);
    }
}