Bug 76792 organize imports: not correct: 0 import(s) added. [code manipulation]
Organize imports falsely sums up the total of added and removed imports to display a difference. 0 import(s) added. means that the total of added and removed imports is 0. It would be better if it told the user something like: 1 import(s) removed, 1 import(s) added. The status message is slightly more useful than you might think at first glance, as in the odd case that it does not work (which I can't reproduce) you want to notice this, and a useful status message helps.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/ImportOrganizeTest.java
importsStructure.addImport("java.util.HashMap");
			importsStructure.create(false, null);
	
			buf= new StringBuffer();
			buf.append("package test1;\n");
			buf.append("\n");
			buf.append("import java.util.HashMap;\n");
			buf.append("\n");		
			buf.append("public class A {\n");
			buf.append("    public Object foo() {\n");
			buf.append("    }\n");
			buf.append("}\n");	
			
			assertEqualStringIgnoreDelim(unit.getSource(), buf.toString());
		} finally {
			unit.discardWorkingCopy();
		}
	}
	
	public void testOrganizeImportOnRange() throws Exception {
	
		IPackageFragmentRoot sourceFolder= JavaProjectHelper.addSourceContainer(fJProject1, "src");
		
		IPackageFragment pack1= sourceFolder.createPackageFragment("test1", false, null);
		StringBuffer buf= new StringBuffer();
		buf.append("package test1;\n");
		buf.append("import java.util.Vector;\n");
		buf.append("public class A {\n");
		buf.append("    public void foo(Vector vec) {\n");
		buf.append("        HashMap map;\n");