Index: src/test/java/geniusweb/partiesserver/JavaClientTest.java
===================================================================
--- src/test/java/geniusweb/partiesserver/JavaClientTest.java	(revision 46)
+++ src/test/java/geniusweb/partiesserver/JavaClientTest.java	(revision 1)
@@ -25,9 +25,8 @@
 
 import geniusweb.actions.PartyId;
-import geniusweb.inform.Settings;
-import geniusweb.inform.YourTurn;
+import geniusweb.party.inform.Settings;
+import geniusweb.party.inform.YourTurn;
 import geniusweb.progress.Progress;
 import geniusweb.progress.ProgressRounds;
-import geniusweb.references.Parameters;
 import geniusweb.references.ProfileRef;
 import geniusweb.references.ProtocolRef;
@@ -39,5 +38,6 @@
  */
 public class JavaClientTest {
-	private static final String RANDOMPARTY = "http://localhost:8080/partiesserver/run/randomparty-2.1.6";
+//	private static final String JSON = "{\"jobs\":[\"jobs1\"]}";
+//	private static final String JOBS1PROFILE = "{\"LinearAdditiveUtilitySpace\":{\"issueUtilities\":{\"lease car\":{\"discreteutils\":{\"valueUtilities\":{\"no\":0,\"yes\":1}}},\"permanent contract\":{\"discreteutils\":{\"valueUtilities\":{\"no\":0,\"yes\":1}}},\"career development opportunities\":{\"discreteutils\":{\"valueUtilities\":{\"high\":1,\"low\":0,\"medium\":0.5}}},\"fte\":{\"discreteutils\":{\"valueUtilities\":{\"1.0\":0.75,\"0.6\":0.25,\"0.8\":0.5}}},\"salary\":{\"discreteutils\":{\"valueUtilities\":{\"4000\":1.0,\"2500\":0.25,\"3500\":0.75,\"2000\":0,\"3000\":0.3}}},\"work from home\":{\"discreteutils\":{\"valueUtilities\":{\"1\":0.5,\"2\":0.666666666666,\"0\":0.333333333}}}},\"issueWeights\":{\"lease car\":0.06,\"permanent contract\":0.16,\"career development opportunities\":0.04,\"fte\":0.32,\"salary\":0.24,\"work from home\":0.18},\"domain\":{\"name\":\"jobs\",\"issuesValues\":{\"lease car\":{\"values\":[\"yes\",\"no\"]},\"permanent contract\":{\"values\":[\"yes\",\"no\"]},\"career development opportunities\":{\"values\":[\"low\",\"medium\",\"high\"]},\"fte\":{\"values\":[\"0.6\",\"0.8\",\"1.0\"]},\"salary\":{\"values\":[\"2000\",\"2500\",\"3000\",\"3500\",\"4000\"]},\"work from home\":{\"values\":[\"0\",\"1\",\"2\"]}}},\"name\":\"jobs1\"}}";
 	private EmbeddedTomcat tomcat = new EmbeddedTomcat();
 	private JavaClient client = new JavaClient();
@@ -59,5 +59,4 @@
 	public void after() throws Throwable {
 		Thread.sleep(2000);
-		System.setSecurityManager(null);
 		tomcat.stop();
 	}
@@ -113,4 +112,39 @@
 	}
 
+//	@Test
+//	public void testGetList() throws IOException, InterruptedException, WebSocketException {
+//		final List<String> received = new LinkedList<>();
+//		Thread.sleep(5000);
+//		WebSocketFactory factory = new WebSocketFactory().setConnectionTimeout(20000);
+//		WebSocket ws = factory.createSocket("ws://localhost:8080/profilesserver/websocket/liststream");
+//
+//		ws.addListener(new WebSocketAdapter() {
+//			@Override
+//			public void onTextMessage(WebSocket websocket, String message) throws Exception {
+//				System.out.println("received message: " + message);
+//				received.add(message);
+//			}
+//		});
+//		ws.connect();
+//		assertTrue(ws.isOpen());
+//
+//		Thread.sleep(2000);
+//		assertEquals(1, received.size());
+//		assertEquals(JSON, received.get(0));
+//	}
+//
+//	@Test
+//	public void testExample() throws WebSocketException, InterruptedException, IOException {
+//		DownloadProfileExample test = new DownloadProfileExample();
+//		test.run();
+//		assertEquals(JOBS1PROFILE, test.getReceived());
+//	}
+//
+//	@Test
+//	public void testExample2() throws WebSocketException, InterruptedException, IOException {
+//		DownloadProfileExample2 test = new DownloadProfileExample2();
+//		assertEquals(JOBS1PROFILE, test.getReceived());
+//	}
+
 	/**
 	 * @return URL on which to contact the party
@@ -122,5 +156,6 @@
 	 */
 	private String startParty() throws IOException, InterruptedException {
-		URL url = new URL(RANDOMPARTY);
+		URL url = new URL(
+				"http://localhost:8080/partiesserver/run/randomparty-1.0.0");
 		HttpURLConnection conn = (HttpURLConnection) url.openConnection();
 		conn.setRequestMethod("GET");
@@ -146,6 +181,5 @@
 		connectParty();
 		Thread.sleep(1000);
-		Settings settings = new Settings(partyid, profile, protocol, progress,
-				new Parameters());
+		Settings settings = new Settings(partyid, profile, protocol, progress);
 		client.sendMessage(settings);
 	}
