### Question:
FormatMatch extends AbstractMatcher<TransportFormat, TransportFormat> { @Override public boolean match(TransportFormat offer, TransportFormat requirement, List<MatchingResultMessage> errorLog) { return MatchingUtils.nullCheck(offer, requirement) || requirement.getRdfType().containsAll(offer.getRdfType()); } FormatMatch(); @Override boolean match(TransportFormat offer, TransportFormat requirement, List<MatchingResultMessage> errorLog);  }### Answer:
@Test public void testPositiveFormatMatch() { TransportFormat offeredJson = TestUtils.jsonFormat(); TransportFormat requiredJson = TestUtils.jsonFormat(); List<MatchingResultMessage> errorLog = new ArrayList<>(); boolean matches = new FormatMatch().match(offeredJson, requiredJson, errorLog); assertTrue(matches); }
@Test public void testNegativeFormatMatch() { TransportFormat offeredJson = TestUtils.jsonFormat(); TransportFormat requiredThrift = TestUtils.thriftFormat(); List<MatchingResultMessage> errorLog = new ArrayList<>(); boolean matches = new FormatMatch().match(offeredJson, requiredThrift, errorLog); assertFalse(matches); }