@Test
public void testAddListenerConfiguration() {

    final LightminClientApplication lightminClientApplication = ServiceTestHelper.createLightminClientApplication();
    when(this.registrationBean.findById(APPLICATION_INSTANCE_ID)).thenReturn(lightminClientApplication);
    final ListenerJobConfigurationModel listenerJobConfigurationModel =
            ServiceTestHelper.createListenerJobConfigurationModel("testJob");
    try {
        this.jobListenerFeService.addListenerConfiguration(listenerJobConfigurationModel, APPLICATION_INSTANCE_ID);
        verify(this.adminServerService, times(1)).
                saveJobConfiguration(this.jobListenerFeService.map(
                        listenerJobConfigurationModel), lightminClientApplication);
    } catch (final Exception e) {
        fail(e.getMessage());
    }
}