@Test
public void throwsOnUnknownHttpMethodName() throws IOException, URISyntaxException {

    // given
    HCRequestFactory factory = createDefaultTestObject();
    String expectedUrl = UUID.randomUUID().toString();
    String httpMethodName = UUID.randomUUID().toString();
    Request request = createDefaultMockRequest(expectedUrl, httpMethodName);
    expectedException.expect(UnsupportedOperationException.class);
    expectedException.expectMessage(httpMethodName);
    // when
    HttpUriRequest result = factory.create(expectedUrl, request);
    // then
    assertTrue(result instanceof HttpPost);
    assertEquals(result.getURI(), new URI(expectedUrl));
}