DeviceTypeManagerService implements DeviceManagementService { @Override public DeviceManager getDeviceManager() { return deviceManager; } 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 addition and retrieval of the license") public void testGetLicense () throws LicenseManagementException { License license = arduinoDeviceTypeManagerService.getDeviceManager().getLicense("en_Us"); Assert.assertEquals(license.getText(), arduinoDeviceTypeConfiguration.getLicense().getText(), "The retrieved" + " license is different from added license"); license.setLanguage("eu"); license.setText("This is a EU License"); arduinoDeviceTypeManagerService.getDeviceManager().addLicense(license); License newLicense = arduinoDeviceTypeManagerService.getDeviceManager().getLicense("eu"); Assert.assertEquals(newLicense.getText(), license.getText(), "The retrieved license is different from added license"); Assert.assertNull(arduinoDeviceTypeManagerService.getDeviceManager().getLicense("tn"), "License is retrieved for a non-existing language code"); }