SaltConfigs { public static void addToRunList(EntitySpec<?> entity, String...states) { for (String state : states) { entity.configure(SaltConfig.START_STATES, SetModifications.addItem(state)); } }  static void addToRunList(EntitySpec<?> entity, String...states); static void addToRunList(EntityInternal entity, String...states); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntitySpec<?> entity, Map<?,?> attributesMap); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntityInternal entity, Map<?,?> attributesMap); static void addToFormulas(EntitySpec<?> entity, String formulaUrl); static void addToFormulas(EntityInternal entity, String formulaUrl); static T getRequiredConfig(Entity entity, ConfigKey<T> key);  }
@Test public void testAddToRunList() { app = TestApplication.Factory.newManagedInstanceForTests(); SaltConfigs.addToRunList(app, "a", "b"); Set<? extends String> runs = app.getConfig(SaltConfig.START_STATES); Assert.assertEquals(runs, ImmutableSet.of("a", "b")); }