Path testPath = testPathHtmlEn;
String failure1 = testPath.getChild("/images/myimage.gif").toString();
testPath = testPath.removeLastPathSegment();
String failure2 = testPath.getChild("/images/myimage.gif").toString();
testPath = testPath.removeLastPathSegment();
String success = testPath.getChild("/images/myimage.gif").toString();
Constraint[] constraints = new Constraint[]{eq(failure1), eq(failure2), eq(success)};
rvMock.expects(atLeastOnce()).method("resourceExists").with(new OnConsecutiveInvokes(constraints))