DeviceTypeManagerService implements DeviceManagementService { public DeviceStatusTaskPluginConfig getDeviceStatusTaskPluginConfig() { return deviceStatusTaskPluginConfig; } 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 the Device task config retrieval") public void testDeviceStatusTaskConfig () throws InvocationTargetException, IllegalAccessException { setDeviceStatusTaskPluginConfig .invoke(androidDeviceTypeManagerService, androidDeviceConfiguration.getDeviceStatusTaskConfiguration()); DeviceStatusTaskPluginConfig deviceStatusTaskPuginConfig = androidDeviceTypeManagerService .getDeviceStatusTaskPluginConfig(); DeviceStatusTaskConfiguration deviceStatusTaskConfiguration = androidDeviceConfiguration .getDeviceStatusTaskConfiguration(); Assert.assertEquals(deviceStatusTaskPuginConfig.getFrequency(), deviceStatusTaskConfiguration.getFrequency(), "Frequency provided in the device task configuration is not set properly."); Assert.assertEquals(deviceStatusTaskPuginConfig.getIdleTimeToMarkInactive(), deviceStatusTaskConfiguration.getIdleTimeToMarkInactive(), "Idle time to mark inactive provided in " + "the device task configuration is not set properly."); Assert.assertEquals(deviceStatusTaskPuginConfig.getIdleTimeToMarkUnreachable(), deviceStatusTaskConfiguration.getIdleTimeToMarkUnreachable(), "Idle time to mark un-reachable " + "provided in the device task configuration is not set properly."); Assert.assertEquals(deviceStatusTaskPuginConfig.isRequireStatusMonitoring(), deviceStatusTaskConfiguration.isEnabled(), "Enabled status provided in the device task configuration" + " is not set properly"); setDeviceStatusTaskPluginConfig.invoke(rasberrypiDeviceTypeManagerService, rasberrypiDeviceConfiguration.getDeviceStatusTaskConfiguration()); deviceStatusTaskPuginConfig = rasberrypiDeviceTypeManagerService.getDeviceStatusTaskPluginConfig(); Assert.assertEquals(deviceStatusTaskPuginConfig.getFrequency(), 0); }