public void OwinRequestUtilities_IsBearerTokenRequest_HasNoHeader_WithoutBearer_ShouldReturnFalse() { HeaderDictionary dict = new HeaderDictionary( new Dictionary <string, string[]>() { { "Authorization-WRONG", new[] { "i-am-so-lonely-i-paid-a-hobo-to-spoon-with-me" } }, }); FormCollection form = new FormCollection(dict); var owinRequestMock = new Mock <IOwinRequest>(); owinRequestMock.Setup(x => x.Headers).Returns(dict); IOwinRequest owinRequest = owinRequestMock.Object; Assert.IsTrue(!owinRequest.IsBearerTokenRequest()); }