@Test
  @Rollback(true)
  public void deleteMasProvince() {

    MasProvince masProvince =
        (MasProvince) masProvinceRepository.getCurrentSession().get(MasProvince.class, id);
    masProvinceRepository.delete(masProvince);
  }
  @Test
  @Rollback(true)
  public void updateMasProvince() {

    MasProvince masProvince =
        (MasProvince) masProvinceRepository.getCurrentSession().get(MasProvince.class, id);
    // System.out.println("id: "+masProvince.getId());
    masProvince.setName("changmai");
    masProvinceRepository.update(masProvince);
  }
  @Test
  @Rollback(true)
  public void createMasProvince() {
    MasProvince masProvince = new MasProvince();
    masProvince.setName("Bangkok");
    masProvince.setCode("PRO-01");
    masProvince.setIsActive(true);
    masProvince.setAuditFlag("C");
    masProvince.setCreatedBy(1);
    masProvince.setCreatedTimeStamp(Calendar.getInstance().getTime());
    masProvinceRepository.create(masProvince);

    MasProvince masProvince1 = new MasProvince();
    masProvince1.setName("trad");
    masProvince1.setCode("PRO-02");
    masProvince1.setIsActive(true);
    masProvince1.setAuditFlag("C");
    masProvince1.setCreatedBy(1);
    masProvince1.setCreatedTimeStamp(Calendar.getInstance().getTime());
    masProvinceRepository.create(masProvince1);
  }
  @Before
  public void setProvince() {
    MasProvince masProvince = new MasProvince();
    masProvince.setName("Bangkok");
    masProvince.setCode("PRO-01");
    masProvince.setIsActive(true);
    masProvince.setAuditFlag("C");
    masProvince.setCreatedBy(1);
    masProvince.setCreatedTimeStamp(Calendar.getInstance().getTime());
    masProvinceRepository.create(masProvince);

    id = masProvince.getId();
  }