private static void assertList(String header, Locale[] fields, QualityValue[] qualities) {
   Map<Locale, QualityValue> map = AcceptHeaders.getLocaleQualityValues(header);
   List<Locale> expectedKeys = Arrays.asList(fields);
   List<QualityValue> expectedValues = Arrays.asList(qualities);
   assertEquals(expectedKeys, new ArrayList<Locale>(map.keySet()));
   assertEquals(expectedValues, new ArrayList<QualityValue>(map.values()));
 }
 @Test
 public void empty() {
   assertNull(AcceptHeaders.getLocaleQualityValues(null));
   assertNull(AcceptHeaders.getLocaleQualityValues(""));
   assertNull(AcceptHeaders.getLocaleQualityValues(" "));
 }