protected void assertEqualCount(String message, int startCount, int endCount) { ProfilerConnector connection= LeakTestSetup.getProfilerConnector(); if (connection != null && (startCount != endCount)) {  String str= message != null ? message + ": " : ""; assertTrue(str + "instance count is not the same: (" + startCount + " / " + endCount + " )", false); }
protected void assertEqualCount(int startCount, int endCount) { assertEqualCount(null, startCount, endCount);
	protected void assertEqualCount(String message, int startCount, int endCount) {		ProfilerConnector connection= LeakTestSetup.getProfilerConnector();		if (connection != null && (startCount != endCount)) {			// only compare if connection could be established			String str= message != null ? message + ": " : "";			assertTrue(str + "instance count is not the same: (" + startCount + " / " + endCount + " )", false);		}	}