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