DeviceTypeManagerService implements DeviceManagementService { @Override public PullNotificationSubscriber getPullNotificationSubscriber() { return pullNotificationSubscriber; } DeviceTypeManagerService(DeviceTypeConfigIdentifier deviceTypeConfigIdentifier,
                                    DeviceTypeConfiguration deviceTypeConfiguration); @Override String getType(); @Override OperationMonitoringTaskConfig getOperationMonitoringConfig(); @Override void init(); @Override DeviceManager getDeviceManager(); @Override ApplicationManager getApplicationManager(); @Override ProvisioningConfig getProvisioningConfig(); @Override PushNotificationConfig getPushNotificationConfig(); @Override PolicyMonitoringManager getPolicyMonitoringManager(); @Override InitialOperationConfig getInitialOperationConfig(); @Override PullNotificationSubscriber getPullNotificationSubscriber(); DeviceStatusTaskPluginConfig getDeviceStatusTaskPluginConfig(); @Override GeneralConfig getGeneralConfig(); void setGeneralConfig(DeviceTypeConfiguration deviceTypeConfiguration);  }
@Test (description = "This test case tests whether the Pull Notification Subscriber is set correctly.") public void testSetPullNotificationSubscriberConfig() throws InvocationTargetException, IllegalAccessException { setPullNotificationSubscriber.invoke(androidDeviceTypeManagerService, androidDeviceConfiguration .getPullNotificationSubscriberConfig()); Assert.assertEquals(androidDeviceTypeManagerService.getPullNotificationSubscriber() != null, androidDeviceConfiguration.getPullNotificationSubscriberConfig() != null); setPullNotificationSubscriber.invoke(rasberrypiDeviceTypeManagerService, rasberrypiDeviceConfiguration .getPullNotificationSubscriberConfig()); Assert.assertEquals(rasberrypiDeviceTypeManagerService.getPullNotificationSubscriber() != null, rasberrypiDeviceConfiguration.getPullNotificationSubscriberConfig() != null); }