} else if (expected instanceof Collection && actual instanceof Collection) {
Collection ec = (Collection) expected;
Collection ac = (Collection) actual;
return compareCollections(ec, ac);
} else if (expected instanceof ExpectableParameter) {
ExpectableParameter ev = (ExpectableParameter) expected;
return ev.isExpected(actual);
} else if (actual instanceof ExpectableParameter) {
ExpectableParameter av = (ExpectableParameter) actual;
return av.isExpected(expected);
} else if (actual instanceof MockBase && expected instanceof MockBase) {
return compareMockBase(expected, actual);
} else if ((expected != null) && expected.equals(actual)) {
return true;
} else if ((actual != null) && actual.equals(expected)) {