oneOf(manager).getSubmissions(with("created"), with("desc"), with("all"));
will(returnValue(submissions));
}
});
GetVideoSubmissions command = new GetVideoSubmissions(manager);
Map<String, String> params = new HashMap<String, String>();
params.put("sortBy", "created");
params.put("sortOrder", "desc");
params.put("filterType", "all");
params.put("pageIndex", "1");
params.put("pageSize", "10");
command.setParams(params);
JSONObject response = command.execute();
assertNotNull("JSONObject is null", response);
assertTrue("result length is zero", response.getInt("totalPages") > 0);
}