### Question:
ImmutableElectricObject { void check(boolean inheritAllowed) { if (vars.length == 0) { return; } vars[0].check(false, inheritAllowed); for (int i = 1; i < vars.length; i++) { vars[i].check(false, inheritAllowed); assert vars[i - 1].getKey().compareTo(vars[i].getKey()) < 0; } } 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(expected = AssertionError.class) public void testCheckFailed() { System.out.println("checkFailed"); obj_Aa.check(false); }