@Test(expected = IllegalStateException.class)
public void testImmutablesCanOnlySetOnceFromArray() {

  VariableContext variables = new VariableContext();
  variables.setImmutables("%user", "%primary_group", "%secondary_group");
  variables.setImmutables("%user", "%primary_group", "%secondary_group");
}