LOGGER.error("Error occured in testProcess:", e1);
} catch (final UnsupportedEncodingException e) {
fail("Encoding exception thrown ");
LOGGER.error("Error occured in testProcess:", e);
}
CheckUrlsCommand command;
final HttpClient client = createNiceMock(HttpClient.class);
try {
expect(client.executeMethod(isA(HttpMethod.class))).andThrow(
new IOException()).anyTimes();
expect(client.getHttpConnectionManager()).andReturn(
new MultiThreadedHttpConnectionManager()).anyTimes();
replay(client);
command = new CheckUrlsCommand(null, client);
command.process(context);
assertEquals(14, context.getResults().size());
assertNull(CollectionUtils.find(context.getResults(),
new Predicate() {
public boolean evaluate(final Object object) {
final Result r = (Result) object;