@Test public void testGetSecondOrderFriends() { FacePamphletDatabase theBase = new FacePamphletDatabase(); FacePamphletProfile test = new FacePamphletProfile("Test Profile"); FacePamphletProfile jimmy = new FacePamphletProfile("Jimmy"); FacePamphletProfile timmy = new FacePamphletProfile("Timmy"); FacePamphletProfile shimmy = new FacePamphletProfile("Shimmy"); FacePamphletProfile joseph = new FacePamphletProfile("Joseph"); FacePamphletProfile mom = new FacePamphletProfile("Your Mother"); theBase.addProfile(test); theBase.addProfile(jimmy); theBase.addProfile(timmy); theBase.addProfile(shimmy); theBase.addProfile(joseph); theBase.addProfile(mom); jimmy.addFriend(timmy); jimmy.addFriend(mom); timmy.addFriend(shimmy); timmy.addFriend(joseph); timmy.addFriend(timmy); test.addFriend(jimmy); test.addFriend(timmy); ArrayList<String> testList = new ArrayList<String>(); testList.add("Timmy"); testList.add("Shimmy"); testList.add("Joseph"); testList.add("Your Mother"); assertEquals(testList, test.getSecondOrderFriends()); }