public static void testClassifier(String apiKey) throws NetworkException, AnalysisException {
		ClassifierManager manager = new ClassifierManager(apiKey);
		
		String testClassifierId = "java_test_classifier";
		
		try {
			for (Category cat : manager.allCategories(testClassifierId).getCategories()) {
				System.out.println("Current category: " + cat.getCategoryId());
			}
		
			manager.deleteClassifier(testClassifierId);
		}
		catch (AnalysisException ex) {}
		
		System.out.println("Creating classifier..");
		
		try {
			manager.createClassifier(testClassifierId, 
					Arrays.asList(Category.builder()
							.setCategoryId("ID1")
							.setQuery("or(concept('sport>soccer'),concept('sport>association football'))")
							.build(),
							Category.builder()
							.setCategoryId("ID2")
							.setQuery("or(concept('sport>super bowl'),concept('sport>NFL'),concept('sport>american football'))")
							.build()));
			
		} catch (IOException e) {
			e.printStackTrace();
		}

		System.out.println("Finished Creating classifier");
		
		System.out.println(manager.getCategory(testClassifierId, "ID1").getCategoryId());
		
		{
			for (Category cat : manager.allCategories(testClassifierId).getCategories()) {
				System.out.println("Final Classifier: " + cat.getCategoryId() + " " + cat.getQuery());
			}
		}
	
		TextRazor client = new TextRazor(apiKey);
		
		String url = "http://us.cnn.com/2016/02/01/us/carolina-panthers-haters/index.html";
		
		client.setCleanupMode("cleanHTML");
		client.setClassifiers(Arrays.asList(testClassifierId));
		
		AnalyzedText response = client.analyzeUrl(url);
		
		for (ScoredCategory category : response.getResponse().getCategories()) {
			System.out.println("Category:" + category.getCategoryId() + " " + category.getLabel() + " " + category.getScore());
		}
	}