### Question:
UnifiedDataShapeGenerator implements DataShapeGenerator<Oas20Document, Oas20Operation> { static boolean supports(final String mime, final List<String> defaultMimes, final List<String> mimes) { boolean supports = false; if (mimes != null && !mimes.isEmpty()) { supports = mimes.contains(mime); } if (defaultMimes != null && !defaultMimes.isEmpty()) { supports |= defaultMimes.contains(mime); } return supports; }  @Override DataShape createShapeFromRequest(final ObjectNode json, final Oas20Document openApiDoc, final Oas20Operation operation); @Override DataShape createShapeFromResponse(final ObjectNode json, final Oas20Document openApiDoc, final Oas20Operation operation);  }### Answer:
@Test public void shouldDetermineSupportedMimes() { assertThat(supports(mime, defaultMimes, mimes)).isEqualTo(outcome); }