The separate assertions in this method should be broken out into their own tests so if only part of the PortAliasTable is broken the other parts are still tested. You can instantiate the table in setUp() and then examine it in the separate methods.