@Test
void shouldCreateCardFromFileInOpenMode() {

    String resource = "file:" + System.getProperty("user.dir") + "src/test/resources/images/blue/blue.jpg";
    Image img = new Image(resource);
    MemoryCard memoryCard = new MemoryCard(2, 2, 2, 2, img, 2,
        mockGameContext, mockStats, mockMemory, mockConfig.getFixationLength(), true);
    Image image = ((ImagePattern) memoryCard.getImageRectangle().getFill()).getImage();
    assert image.getUrl().contains("blue.jpg");
}