Update methods according to TradeOffer builder refactorings and copyOf.
Fix testInvalidBuild to expect IllegalStateException.