DeviceTypeManagerService implements DeviceManagementService { @Override public OperationMonitoringTaskConfig getOperationMonitoringConfig() { return operationMonitoringConfigs; } 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 aims to test whether correct operations are listed as per the configuration " + "of device types") public void testOperationConfig() throws InvocationTargetException, IllegalAccessException { setOperationMonitoringConfig.invoke(androidDeviceTypeManagerService, androidDeviceConfiguration); OperationMonitoringTaskConfig operationMonitoringTaskConfig = androidDeviceTypeManagerService .getOperationMonitoringConfig(); TaskConfiguration taskConfiguration = androidDeviceConfiguration.getTaskConfiguration(); Assert.assertEquals(operationMonitoringTaskConfig.getFrequency(), taskConfiguration.getFrequency(), "Policy " + "Monitoring frequency does not match with the frequency in the configuration"); Assert.assertEquals(operationMonitoringTaskConfig.getMonitoringOperation().size(), taskConfiguration.getOperations().size(), "Number of task configuration operations does not match with the task " + "configuration operations provided in the configuration file"); setOperationMonitoringConfig.invoke(rasberrypiDeviceTypeManagerService, rasberrypiDeviceConfiguration); operationMonitoringTaskConfig = rasberrypiDeviceTypeManagerService.getOperationMonitoringConfig(); Assert.assertEquals(operationMonitoringTaskConfig.getFrequency(), 0, "Frequency is set for a non-existing " + "operation task configuration"); }