TableRectangle rect = new TableRectangle();
rect.setRect(1, 1, 2, 2);
StrictBounds b = new StrictBounds(StrictGeomUtility.toInternalValue(200), StrictGeomUtility.toInternalValue(200),
StrictGeomUtility.toInternalValue(200), StrictGeomUtility.toInternalValue(200));
ClientAnchor clientAnchor = xlsxImageHandler.computeClientAnchor(sheetLayout, rect, b);
Assert.assertEquals(1, clientAnchor.getCol1());
Assert.assertEquals(1, clientAnchor.getCol2());
Assert.assertEquals(1, clientAnchor.getRow1());
Assert.assertEquals(1, clientAnchor.getRow2());
Assert.assertEquals(100 * XSSFShape.EMU_PER_POINT, clientAnchor.getDx1());
Assert.assertEquals(300 * XSSFShape.EMU_PER_POINT, clientAnchor.getDx2());
Assert.assertEquals(100 * XSSFShape.EMU_PER_POINT, clientAnchor.getDy1());
Assert.assertEquals(300 * XSSFShape.EMU_PER_POINT, clientAnchor.getDy2());
}