Bug 516401 - [tests] FactoryPathTests.testAddRemoveWorkspaceJar failing

Change-Id: I0907446abf32ce84482a1451e479c3ccd77e22e0
Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/FactoryPathTests.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/FactoryPathTests.java
index b92a4fe..5ce02a8 100644
--- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/FactoryPathTests.java
+++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/FactoryPathTests.java
@@ -108,7 +108,7 @@
 
 		// Will throw an exception if the newly added jar isn't first
 		WkspJarFactoryContainer fc = (WkspJarFactoryContainer) path.getAllContainers().keySet().iterator().next();
-		assertTrue(fc.getJarFile().toString().endsWith(toAdd.toString()));
+		assertTrue(fc.getJarFile().toString().endsWith(toAdd.toOSString()));
 
 		path.removeWkspJar(toAdd);