@Test
	public void testTpsValue() {
		SingleConsole singleConsole = new SingleConsole(getFreePort());
		singleConsole.setTpsValue(10);
		assertThat(singleConsole.getTpsValues(), is(10D));
		singleConsole.setTpsValue(12);
		assertThat(singleConsole.getTpsValues(), is(12D));
		singleConsole.setTpsValue(8);
		assertThat(singleConsole.getPeakTpsForGraph(), is(12D));
	}
Returns a free port number on localhost, or -1 if unable to find a free port.

@return a free port number on localhost, or -1 if unable to find a free port
ngrinder-core/src/test/java/net/grinder/SingleConsoleTest.java