@Test
public void testIsPlayable() {
JassRule rule = new JassRule();
rule.setTrumpf(CardColor.HERZ);
MockPlayer hans = new MockPlayer();
List<Card> handCards = new ArrayList<Card>();
Card ecke6 = new Card(CardColor.ECKE, CardRank.SECHS);
ecke6.setHolder(hans);
Card ecke7 = new Card(CardColor.ECKE, CardRank.SIEBEN);
ecke7.setHolder(hans);
handCards.add(ecke6);
handCards.add(ecke7);
hans.setHand(new Hand(handCards));
// empty table
Table table = new Table(4);
Assert.assertTrue(rule.isPlayable(new Card(CardColor.SCHAUFEL, CardRank.SECHS), table));
table.addCard(0,new Card(CardColor.SCHAUFEL, CardRank.SECHS));