### Question:
ImmutableElectricObject { Variable[] arrayWithoutVariable(Variable.Key key) { return arrayWithoutVariable(vars, key); } ImmutableElectricObject(Variable[] vars, int flags); Variable getVar(Variable.Key key); T getVarValue(Variable.Key key, Class type); Iterator<Variable> getVariables(); Variable[] toVariableArray(); int getNumVariables(); Variable getVar(int varIndex); int searchVar(Variable.Key key); abstract int hashCodeExceptVariables(); abstract boolean equalsExceptVariables(ImmutableElectricObject o); boolean equalsVariables(ImmutableElectricObject o); final int flags; }### Answer:
@Test public void testArrayWithoutVariable() { System.out.println("arrayWithoutVariable"); assertSame(obj_a.getVars(), obj_a.arrayWithoutVariable(Variable.newKey("ATTR_A"))); assertSame(Variable.NULL_ARRAY, obj_a.arrayWithoutVariable(Variable.newKey("a"))); Variable[] vars1 = obj_Aa.arrayWithoutVariable(Variable.newKey("ATTR_A")); assertEquals(1, vars1.length); assertSame(a_foo, vars1[0]); }