@Test
void shouldCreateCardFromResourceInNotOpenModeAndFillWithBackCardImage() {

    String resource = "images/blue/blue.jpg";
    Image img = new Image(resource);
    MemoryCard memoryCard = new MemoryCard(2, 2, 2, 2, img, 2,
        mockGameContext, mockStats, mockMemory, mockConfig.getFixationLength(), false);
    Image image = ((ImagePattern) memoryCard.getImageRectangle().getFill()).getImage();
    assert image.getUrl().contains("data/magiccards/images/red-card-game.png");
}