package ai.elimu.dao;

import ai.elimu.model.content.Sound;
import ai.elimu.model.content.StoryBookParagraph;
import ai.elimu.model.v2.enums.content.sound.SoundType;
import java.util.List;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import org.junit.Test;

import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("file:src/main/webapp/WEB-INF/spring/applicationContext-jpa.xml")
public class StoryBookParagraphDaoTest {
    
    @Autowired
    private StoryBookParagraphDao storyBookParagraphDao;
    
    @Test
    public void testReadAllContainingWord_apostrophe() {
        String wordText = "its";
        List<StoryBookParagraph> storyBookParagraphs = storyBookParagraphDao.readAllContainingWord(wordText);
        assertThat(storyBookParagraphs.size(), is(0));
        
        wordText = "it's";
        storyBookParagraphs = storyBookParagraphDao.readAllContainingWord(wordText);
        assertThat(storyBookParagraphs.size(), is(0));
    }
}

@@ -576,16 +576,98 @@
 uration(
+locations=%7B%0A    %22file:src/main/webapp/WEB-INF/spring/applicationContext.xml%22,%0A    
 %22file:sr
@@ -722,16 +722,18 @@
 jpa.xml%22
+%0A%7D
 )%0Apublic

Update @ContextConfiguration