// visible initially
{
CategoryInfo category = DeviceManager.getCategory("newCat");
assertTrue(category.isVisible());
// show (will be removed by second command)
DeviceManager.commandsAdd(new ElementVisibilityCommand(category, true));
// hide
DeviceManager.commandsAdd(new ElementVisibilityCommand(category, false));
assertFalse(category.isVisible());
}
// reload
DeviceManager.commandsWrite();
DeviceManager.forceReload();