@SuppressWarnings("deprecation")
@Test
public void verticallyCenter() {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet s = wb.createSheet();
VCenterRecord record = s.getSheet().getPageSettings().getVCenter();
assertFalse(record.getVCenter());
assertFalse(s.getVerticallyCenter(true));
assertFalse(s.getVerticallyCenter(false));
s.setVerticallyCenter(true);
assertTrue(record.getVCenter());
assertTrue(s.getVerticallyCenter(true));
assertTrue(s.getVerticallyCenter(false));
// wb.write(new FileOutputStream("c:\\test.xls"));
}