### Question:
AcceptTypes { public List<AcceptType> getAcceptTypeList() { return acceptTypeList; }  List<AcceptType> getAcceptTypeList(); void setAcceptTypeList(List<AcceptType> acceptTypeList); static AcceptTypes getPrefferedAcceptTypes(String strIn); String mediaTypesToString(); String findSuitableMediaType(String ... mediaChoices);  }### Answer:
@Test public void testPrecedence() { int j; int i; for (j = 0; j < acceptTypes.size(); j++) { i = 0; for (String mMap : expectedMTypes[j].split(",")) { AcceptType o = AcceptType.newInstance(mMap); AcceptType t = acceptTypes.get(j).getAcceptTypeList().get(i); Assert.assertTrue(AcceptType.mediaMatch(t, o)); i++; } } }