@Test(expected = IndexOutOfBoundsException.class)
public void testPrefRowHeightInvalidRow() {

    JTable table = new JTable(10, 3);
    assertEquals(table.getRowHeight(), TableUtilities.getPreferredRowHeight(table, -1));
}