public class Rebid1NTTest extends TestCase {
public void testRaiseTo4IfAtLeast3CardsInColor() {
Auctioneer a = new Auctioneer(West.i());
a.bid(new Bid(1, NoTrump.i()));
a.bid(new Pass());
a.bid(new Bid(3, Hearts.i()));
a.bid(new Pass());
Rebid1NT rule = new Rebid1NT(
a, new Hand("K,2", "A,3,2", "A,Q,8,6", "K,J,5,3"));
assertEquals(new Bid(4, Hearts.i()), rule.getBid());
Auctioneer a2 = new Auctioneer(West.i());
a2.bid(new Bid(1, NoTrump.i()));
a2.bid(new Pass());
a2.bid(new Bid(3, Spades.i()));
a2.bid(new Pass());
Rebid1NT triangulate = new Rebid1NT(
a2, new Hand("A,Q,3", "K,2", "A,8,6,3", "K,J,5,3"));
assertEquals(new Bid(4, Spades.i()), triangulate.getBid());
}