diff --git a/spring-web/src/test/java/org/springframework/http/converter/protobuf/ProtobufHttpMessageConverterTests.java b/spring-web/src/test/java/org/springframework/http/converter/protobuf/ProtobufHttpMessageConverterTests.java index 5ba09529ea75..56711fc80811 100644 --- a/spring-web/src/test/java/org/springframework/http/converter/protobuf/ProtobufHttpMessageConverterTests.java +++ b/spring-web/src/test/java/org/springframework/http/converter/protobuf/ProtobufHttpMessageConverterTests.java @@ -64,7 +64,7 @@ void canRead() { void canWrite() { assertThat(this.converter.canWrite(Msg.class, null)).isTrue(); assertThat(this.converter.canWrite(Msg.class, ProtobufHttpMessageConverter.PROTOBUF)).isTrue(); - assertThat(this.converter.canRead(Msg.class, this.testPlusProtoMediaType)).isTrue(); + assertThat(this.converter.canWrite(Msg.class, this.testPlusProtoMediaType)).isTrue(); assertThat(this.converter.canWrite(Msg.class, MediaType.APPLICATION_JSON)).isTrue(); assertThat(this.converter.canWrite(Msg.class, MediaType.TEXT_PLAIN)).isTrue(); }