} catch(ExcepcaoPersistencia excepcaoPersistencia) { fail("testReadTeacherByUsername: confirmarTransaccao");
} catch (ExcepcaoPersistencia excepcaoPersistencia) { fail("testReadTeacherByNumber: confirmarTransaccao");
	public void testReadTeacherByNumber() {		ITeacher teacher = null;		//read existing		try {			persistentSupport.iniciarTransaccao();			teacher = persistentTeacher.readTeacherByNumber(new Integer("1"));			persistentSupport.confirmarTransaccao();		} catch(ExcepcaoPersistencia excepcaoPersistencia) {			fail("testReadTeacherByUsername: confirmarTransaccao");		}		assertNotNull(teacher);		assertTrue(teacher.getTeacherNumber().equals(new Integer("1")));		assertEquals(teacher.getResponsableForExecutionCourses().size(), 2);		assertEquals(teacher.getProfessorShipsExecutionCourses().size(), 3);		//read unexisting		try {			persistentSupport.iniciarTransaccao();			teacher = persistentTeacher.readTeacherByNumber(new Integer("2"));			persistentSupport.confirmarTransaccao();		} catch(ExcepcaoPersistencia excepcaoPersistencia) {			fail("testReadTeacherByUsername: confirmarTransaccao");		}		assertNull(teacher);	}