You could save many lines below by adding "assertEquals(expected.length, vt.getRowCount());" here.