@@ -0,0 +1,996 @@
+/**%0D%0A * %0D%0A */%0D%0Apackage edu.wustl.cab2b.common.util;%0D%0A%0D%0Aimport junit.framework.TestCase;%0D%0A%0D%0A/**%0D%0A * @author deepak_shingan%0D%0A *%0D%0A */%0D%0Apublic class UtilityTest extends TestCase %7B%0D%0A%0D%0A    /**%0D%0A     * Test method for %7B@link edu.wustl.cab2b.common.util.Utility#replaceAllWords(java.lang.String, java.lang.String, java.lang.String)%7D.%0D%0A     */%0D%0A    public final void testReplaceAllWords() %7B%0D%0A        //char replacement test %0D%0A        assertEquals(%22Test%22, Utility.replaceAllWords(%22Teasta%22, %22a%22, %22%22));%0D%0A%0D%0A        //String replacement test %0D%0A        assertEquals(%22What is this? this is this and is this Correct?%22,%0D%0A                     Utility.replaceAllWords(%22What is that? that is that and is that Correct?%22, %22that%22, %22this%22));%0D%0A        //Null argument passing %0D%0A        assertEquals(null, Utility.replaceAllWords(null, %22that%22, %22this%22));%0D%0A%0D%0A        //No replacement found test  %0D%0A        assertEquals(%22No replacement test%22, Utility.replaceAllWords(%22No replacement test%22, %22Deepak%22, %22Shingan%22));%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Test case written for Utility.replaceAllWords() method