### Question:
TileGroup extends NameableAbstract { public boolean contains(Tile tile) { return contains(tile.getKey()); } TileGroup(String name, TileGroupType type, Set<Integer> tiles); boolean contains(Tile tile); boolean contains(Integer number); TileGroupType getType(); Set<Integer> getTiles();  }### Answer:
@Test void testContains() { final TileGroup tileGroup = new TileGroup("test", TileGroupType.NONE, getTile(1)); assertTrue(tileGroup.contains(Integer.valueOf(1))); assertTrue(tileGroup.contains(new TileGame(1, 1, 1, 1, 1))); assertFalse(tileGroup.contains(Integer.valueOf(2))); }