@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");
}