### Question:
SifEntityGenerator { public static StudentLEARelationship generateTestStudentLeaRelationship() { StudentLEARelationship retVal = new StudentLEARelationship(); retVal.setRefId(TEST_STUDENTLEARELATIONSHIP_REFID); retVal.setStudentPersonalRefId(TEST_STUDENTPERSONAL_REFID); retVal.setLEAInfoRefId(TEST_LEAINFO_REFID); retVal.setSchoolYear(2012); retVal.setMembershipType(MembershipType.HOME); OrganizationRelationshipType ort = new OrganizationRelationshipType(); ResidencyStatus rs = new ResidencyStatus(); rs.setCode(PublicSchoolResidenceStatus.RESIDENT); ort.setResidencyStatus(rs); ort.setProvidingInstruction(true); ort.setProvidingServices(true); ort.setFinanciallyResponsible(true); retVal.setLEARelationshipType(ort); retVal.setEntryDate(new GregorianCalendar(2012, 8, 16)); retVal.setEntryType(EntryTypeCode._0619_1838); retVal.setGradeLevel(GradeLevelCode._10); return retVal; }  static SchoolInfo generateTestSchoolInfo(); static LEAInfo generateTestLEAInfo(); static SEAInfo generateTestSEAInfo(); static StudentSchoolEnrollment generateTestStudentSchoolEnrollment(); static StudentLEARelationship generateTestStudentLeaRelationship(); static StudentPersonal generateTestStudentPersonal(); static StaffPersonal generateTestStaffPersonal(); static EmployeePersonal generateTestEmployeePersonal(); static StaffAssignment generateTestStaffAssignment(); static EmploymentRecord generateTestEmploymentRecord(); static EmployeeAssignment generateTestEmployeeAssignment(); static final String TEST_SCHOOLINFO_REFID; static final String TEST_LEAINFO_REFID; static final String TEST_SEAINFO_REFID; static final String TEST_STUDENTPERSONAL_REFID; static final String TEST_STUDENTSCHOOLENROLLMENT_REFID; static final String TEST_STUDENTLEARELATIONSHIP_REFID; static final String TEST_STAFFPERSONAL_REFID; static final String TEST_EMPLOYEEPERSONAL_REFID; static final String TEST_STAFFASSIGNMENT_REFID; static final String TEST_EMPLOYMENTRECORD_REFID; static final String TEST_EMPLOYEEASSIGNMENT_REFID; }### Answer:
@Test public void testGenerateTestStudentLeaRelationship() { StudentLEARelationship studentLeaRelationship = SifEntityGenerator.generateTestStudentLeaRelationship(); Assert.assertEquals(SifEntityGenerator.TEST_STUDENTLEARELATIONSHIP_REFID, studentLeaRelationship.getRefId()); Assert.assertEquals(SifEntityGenerator.TEST_LEAINFO_REFID, studentLeaRelationship.getLEAInfoRefId()); Assert.assertEquals(SifEntityGenerator.TEST_STUDENTPERSONAL_REFID, studentLeaRelationship.getStudentPersonalRefId()); Assert.assertEquals(2012, studentLeaRelationship.getSchoolYear().intValue()); Assert.assertEquals(MembershipType.HOME.getValue(), studentLeaRelationship.getMembershipType()); Assert.assertEquals(EntryTypeCode._0619_1838.getValue(), studentLeaRelationship.getEntryType().getCode()); Assert.assertEquals(GradeLevelCode._10.getValue(), studentLeaRelationship.getGradeLevel().getCode()); OrganizationRelationshipType organizationRelationshipType = studentLeaRelationship.getLEARelationshipType(); Assert.assertEquals(PublicSchoolResidenceStatus.RESIDENT.getValue(), organizationRelationshipType.getResidencyStatus().getCode()); Assert.assertTrue(organizationRelationshipType.getProvidingInstruction().booleanValue()); Assert.assertTrue(organizationRelationshipType.getProvidingServices().booleanValue()); Assert.assertTrue(organizationRelationshipType.getFinanciallyResponsible().booleanValue()); Calendar entryDate = studentLeaRelationship.getEntryDate(); Assert.assertEquals(2012, entryDate.get(Calendar.YEAR)); Assert.assertEquals(8, entryDate.get(Calendar.MONTH)); Assert.assertEquals(16, entryDate.get(Calendar.DATE)); }