### Question:
LabelUtils { public static boolean allPairsPresent(List<Label> expectedTags, List<Label> actualTags) { for (Label expectedTag : expectedTags) { if (!actualTags.contains(expectedTag)) { return false; } } return true; }  static List<Label> generatePairs(String tagQuery); static boolean allPairsPresent(List<Label> expectedTags, List<Label> actualTags); static boolean somePairsPresent(List<Label> expectedTags, List<Label> actualTags); static final String OR_OPERAND; static final String AND_OPERAND; static final String LABEL_QUERY_PARAM; static final String LABEL_OP_QUERY_PARAM; }### Answer:
@Test public void testAllPairsPresent() { String tagQuery = "k1=v1,k2=v2,k3=v3"; List<Label> expectedPairs = LabelUtils.generatePairs(tagQuery); List<Label> actualPairs = new ArrayList<>(); actualPairs.add(new Label("k1", "v1")); actualPairs.add(new Label("k2", "v2")); actualPairs.add(new Label("k3", "v3")); assertTrue(LabelUtils.allPairsPresent(expectedPairs, actualPairs)); }