	@Test
	public void testPathwayCommonsTask(
			CyNetworkManager networkManager, 
			OpenBrowser openBrowser, 
			PropertyManager propertyManager, 
			OpenPathwayCommonsTask.Factory pathwayCommonsTaskFactory
	) {

		CyNetwork network = networkManager.getNetwork(map.getNetworkID());
		CyNode node = TestUtils.getNodes(network).get("TOP1_PLUS100");
		propertyManager.setValue(PropertyManager.PATHWAY_COMMONS_URL, "http://pathway.commons/paint");
		
		@SuppressWarnings("deprecation")
		String returnUri = URLEncoder.encode("http://localhost:1234/enrichmentmap/expressions/" + network.getSUID() + "/" + node.getSUID());
		String expectedUri = "http://pathway.commons/paint?uri=" + returnUri + "&q=top1_plus100";
		
		OpenPathwayCommonsTask task = pathwayCommonsTaskFactory.create(network, node);
		String uri = task.getPathwayCommonsURL();
		assertEquals(expectedUri, uri);
	}