// Path: clients/java/test/org/httpmock/matchers/TestStubRequest.java
// public static TestStubRequest request(String requestMethod, String path) {
//     return new TestStubRequest(requestMethod, path);
// }


import org.junit.Test;
import static junit.framework.Assert.assertFalse;
import static junit.framework.Assert.assertTrue;
import static org.httpmock.matchers.TestStubRequest.request;
package org.httpmock.matchers;



public class ExpectationTest {
    @Test
    public void shouldMatchWithMatchingRequest() {
        Expectation expectation = new Expectation("GET", "/test");
// Path: clients/java/test/org/httpmock/matchers/TestStubRequest.java
// public static TestStubRequest request(String requestMethod, String path) {
//     return new TestStubRequest(requestMethod, path);
// }


// Path: clients/java/test/org/httpmock/matchers/ExpectationTest.java
import org.junit.Test;
import static junit.framework.Assert.assertFalse;
import static junit.framework.Assert.assertTrue;
import static org.httpmock.matchers.TestStubRequest.request;

package org.httpmock.matchers;



public class ExpectationTest {
    @Test
    public void shouldMatchWithMatchingRequest() {
        Expectation expectation = new Expectation("GET", "/test");
        assertTrue(expectation.matches(request("GET", "/test")));