}
// inherit javadoc
public void run() throws Exception {
int counter = 1;
Uuid uuid = UuidFactory.create(1,2);
FakeOutboundRequest request = new FakeOutboundRequest();
BasicObjectEndpoint boe = new BasicObjectEndpoint(
new FakeEndpoint(new FakeOutboundRequestIterator(request)),
uuid,false);
OutboundRequestIterator iterator =
boe.newCall(InvocationConstraints.EMPTY);
logger.log(Level.FINE,"=================================");
logger.log(Level.FINE,"test case " + (counter++)
+ ": hasNext returns true");
logger.log(Level.FINE,"");
assertion(iterator.hasNext() == true);
logger.log(Level.FINE,"=================================");
logger.log(Level.FINE,"test case " + (counter++)
+ ": next returns correct OutboundRequest");
logger.log(Level.FINE,"");
assertion(iterator.next() == request);
logger.log(Level.FINE,"=================================");
logger.log(Level.FINE,"test case " + (counter++)
+ ": uuid writen to OutboundRequest output stream");
logger.log(Level.FINE,"");
Uuid writtenUuid = UuidFactory.read(request.getRequestStream());
assertion(uuid.equals(writtenUuid));
logger.log(Level.FINE,"=================================");
logger.log(Level.FINE,"test case " + (counter++)
+ ": hasNext returns false");