@Test
	public void testGetLastErrors() throws Exception {
		//last errors
		ArrayList<String> lastErrors;

		String assertString1, assertString2, assertString3;

		//we have to know future
		this.terminal.isReadyForGetTotal();

		//last errors
		lastErrors = this.terminal.getLastErrors();

		assertString1 = "[P-1P ? : D, P ? : F, P ? : Z]";
		assertTrue(assertString1.equalsIgnoreCase(lastErrors.toString()));

		//Product D, adding 1-item-pack price
		this.terminal.setPricing('D',1,1);

		this.terminal.isReadyForGetTotal();
		lastErrors = this.terminal.getLastErrors();

		assertString2 = "[P ? : F, P ? : Z]";
		assertTrue(assertString2.equalsIgnoreCase(lastErrors.toString()));

		//Product Z, registering product
		this.terminal.setPricing('Z',1,21);

		this.terminal.isReadyForGetTotal();
		lastErrors = this.terminal.getLastErrors();

		assertString3 = "[P ? : F]";
		assertTrue(assertString3.equalsIgnoreCase(lastErrors.toString()));


	}