### Question:
ProtobufAdapter extends AbstractBodyAdapter { @Override public boolean supportsType(TypeRef<?> type) { return type.type() instanceof Class<?> && MessageLite.class.isAssignableFrom(type.rawType()); } ProtobufAdapter(); @Override boolean supportsType(TypeRef<?> type);  }### Answer:
@Test void isCompatibleWith_supportsType() { for (var c : List.of(createEncoder(), ProtobufAdapterFactory.createDecoder())) { assertTrue(c.isCompatibleWith(MediaType.of("application", "octet-stream"))); assertTrue(c.isCompatibleWith(MediaType.of("application", "x-protobuf"))); assertTrue(c.isCompatibleWith(MediaType.of("application", "*"))); assertFalse(c.isCompatibleWith(MediaType.of("application", "json"))); assertTrue(c.supportsType(TypeRef.from(MessageLite.class))); assertTrue(c.supportsType(TypeRef.from(Message.class))); assertFalse(c.supportsType(TypeRef.from(String.class))); } }