oObj.addNewFromTitles(CRA, border);
for (int i = 1; i < 4; i++) {
bResult &= oObj.hasByName("Column" + i);
Object range = oObj.getByName("Column" + i);
XCellRangeReferrer CRR = (XCellRangeReferrer)UnoRuntime.
queryInterface(XCellRangeReferrer.class,range);
XCellRange CR = CRR.getReferredCells();
XCellRangeAddressable xCRA = (XCellRangeAddressable)
UnoRuntime.queryInterface(XCellRangeAddressable.class, CR);
CellRangeAddress objCRA = xCRA.getRangeAddress();
bResult &= (objCRA.EndColumn == i && objCRA.StartColumn == i);
bResult &= objCRA.StartRow == 1;
bResult &= objCRA.EndRow == 3;
bResult &= objCRA.Sheet == 0;
}
border = Border.LEFT;
oObj.addNewFromTitles(CRA, border);
for (int i = 1; i < 4; i++) {
bResult &= oObj.hasByName("Row" + i);
Object range = oObj.getByName("Row" + i);
XCellRangeReferrer CRR = (XCellRangeReferrer)UnoRuntime.
queryInterface(XCellRangeReferrer.class,range);
XCellRange CR = CRR.getReferredCells();
XCellRangeAddressable xCRA = (XCellRangeAddressable)
UnoRuntime.queryInterface(XCellRangeAddressable.class, CR);
CellRangeAddress objCRA = xCRA.getRangeAddress();