/**
* test CRUD for {@link ContractParty}
*/
public void testContractPartyCRUD() {
// C
ContractParty contractParty = new ContractParty();
String name = "am";
contractParty.setPrincipalName(name);
contractParty.setContractId(1005l);
getBoSvc().save(contractParty);
// R
contractParty.refresh();
assertEquals("principal name does not match", name, contractParty.getPrincipalName());
// U
name = "zn";
contractParty.setPrincipalName(name);
contractParty.refresh();
assertEquals("principal name does not match", name, contractParty.getPrincipalName());
// D
getBoSvc().delete(contractParty);
assertNull(getBoSvc().findBySinglePrimaryKey(ContractParty.class,
contractParty.getId()));
}