public async Task Remote_WrongContentType()

in CachingProxyTests/src/CachingProxyTest.cs [468:476]


    public async Task Remote_WrongContentType()
    {
      await AssertGetResponse("/real/wrong-content-type.jar", HttpStatusCode.ServiceUnavailable,
        (message, bytes) =>
        {
          var text = Encoding.UTF8.GetString(bytes);
          Assert.Equal($"{RealTestServer.Url}/wrong-content-type.jar returned content type 'text/html' which is forbidden by content type validation for file extension '.jar'", text);
        });
    }