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