// Vertical alignment
@Test
public void retreivedCellShouldHaveTopAlignment() {
// Register vertical alignment
final VerticalAlignmentEnum vAlignment = VerticalAlignmentEnum.TOP;
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
vAlignment);
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE,
cellStyle, DisplayMode.NORMAL,
AlternatingRowConfigLabelAccumulator.EVEN_ROW_CONFIG_TYPE);
// Check cell vertical alignment
ILayerCell cell = natTable.getCellByPosition(2, 3);
Assert.assertEquals(
vAlignment.name(),
configRegistry
.getConfigAttribute(CellConfigAttributes.CELL_STYLE,
cell.getDisplayMode(),
cell.getConfigLabels().getLabels())
.getAttributeValue(