Java, unit testing, GUI