final Object object = new Object();
trros.push(object, false);
assertSame("Unexpected object on stack.", object, trros.peek());
final ResourceOwnerMock resource1Mock =
new ResourceOwnerMock("resource1Mock", expectations);
trros.push(resource1Mock, true);
Object onStack = trros.getStack().peek();
assertSame("Unexpected object on stack.", resource1Mock,
((ReleasableResourceOwner) onStack).getResourceOwner());
final ResourceOwnerMock resource2Mock =
new ResourceOwnerMock("resource2Mock", expectations);
trros.push(resource2Mock, false);
onStack = trros.getStack().peek();
assertSame("Unexpected object on stack.", resource2Mock, onStack);
}