package com.crawljax.core.configuration;

import static com.crawljax.core.configuration.CrawlElementMatcher.withXpath;
import static org.hamcrest.collection.IsCollectionWithSize.hasSize;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;


import org.junit.Before;
import org.junit.Test;

import com.crawljax.core.state.Eventable.EventType;

public class XPathEscapeApostropheTest {

	private CrawlActionsBuilder actions;
	private CrawlElement element;

	@Before
	public void setup() {
		element = new CrawlElement(EventType.click, "button");
	}

	@Test
	public void testStringNoApostrophes() {
		String test = "Test String";
		test = element.escapeApostrophes(test);
		assertEquals("'Test String'", test);
	}
	
	@Test
	public void testStringConcat() {
		String test = "I'm Feeling Lucky";
		test = element.escapeApostrophes(test);	
		assertEquals("concat('I',\"'\",'m Feeling Lucky')", test);
	}
	
}

@@ -53,225 +53,37 @@
 tic 
-com.crawljax.core.configuration.CrawlElementMatcher.withXpath;%0Aimport static org.hamcrest.collection.IsCollectionWithSize.hasSize;%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertThat
+org.junit.Assert.assertEquals
 ;%0A%0A%0A
@@ -230,46 +230,8 @@
  %7B%0A%0A
-%09private CrawlActionsBuilder actions;%0A
 %09pri

Remove unused code from test case