@Test
  public void testGetQualificationFileById() {
    QualificationFile qualificationFile = qualificationFileService.getQualificationFileById(1);

    assertEquals("企业法人营业执照", qualificationFile.getName());
    assertEquals("admin", qualificationFile.getCreatedBy());
    assertEquals("2013-06-29 13:58:38", DateTimeUtils.format(qualificationFile.getCreateOn()));
    assertNull(qualificationFile.getModifiedBy());
    assertNull(qualificationFile.getModifyOn());
  }
  @Test
  public void testCreateNewQualificationFile() {
    QualificationFileCategory qualificationFileCategory =
        qualificationFileCategoryService.getQualificationFileCategoryById(1);
    QualificationFile qualificationFile = new QualificationFile();
    qualificationFile.setName("企业法人营业执照");
    qualificationFile.setFilePath("qualificationFile/qyfzyyzz.jepg");
    qualificationFile.setQualificationFileCategory(qualificationFileCategory);

    qualificationFileService.createNewQualificationFile(qualificationFile, user);
    assertNotNull(qualificationFile.getId());
    assertEquals(user.getName(), qualificationFile.getCreatedBy());
    assertNotNull(qualificationFile.getCreateOn());
    assertEquals(
        qualificationFileCategory.getName(),
        qualificationFile.getQualificationFileCategory().getName());
  }