@Test
  public void manyToOne_setShipmentVendor() {
    TdProductShipment many = new TdProductShipment();

    // init
    TdShipmentVendor one = new TdShipmentVendor();

    one.setShipmentVendorId(ValueGenerator.getUniqueInteger());
    many.setShipmentVendor(one);

    // make sure it is propagated properly
    assertNotNull(many.getShipmentVendorId());
    assertEquals(one, many.getShipmentVendor());
    assertSame(many.getShipmentVendorId(), one.getShipmentVendorId());
    // now set it to back to null
    many.setShipmentVendor(null);

    // make sure null is propagated properly
    assertNull(many.getShipmentVendor());

    // make sure it is propagated on fk column as well
    assertNull(many.getShipmentVendorId());
  }