Border borderbase1 = new Border(new Color("#ff3333"), 5, SupportedLinearMeasure.PT);
Border borderbase2 = new Border(new Color("#0000ff"), 0.0154, 0.0008, 0.0008, SupportedLinearMeasure.IN);
Border borderbase3 = new Border(new Color("#ff3333"), 0.0362, 0.0008, 0.0008, SupportedLinearMeasure.IN);
Border borderbase4 = new Border(new Color("#00ccff"), 0.0701, 0.0008, 0.0346, SupportedLinearMeasure.IN);
try {
SpreadsheetDocument doc = SpreadsheetDocument.loadDocument(ResourceUtilities
.getTestResourceAsStream(filename));
Table table = doc.getTableByName("A");
Cell cell1 = table.getCellByPosition("A8");
Border border1 = cell1.getBorder(CellBordersType.BOTTOM);
Border border11 = cell1.getBorder(CellBordersType.LEFT);
Assert.assertEquals(borderbase1, border1);
Assert.assertEquals(borderbase1, border11);