@Test
public void should_honor_constructor_params() {
Endpoint<?> endpoint1 = new EndpointOne();
Endpoint<?> endpoint2 = new EndpointTwo();
List<Endpoint<?>> endpointList = Arrays.asList(endpoint1, endpoint2);
String requestPath = UUID.randomUUID().toString();
String requestMethod = UUID.randomUUID().toString();
String message = UUID.randomUUID().toString();
MultipleMatchingEndpointsException ex = new MultipleMatchingEndpointsException(message, endpointList, requestPath, requestMethod);
assertThat(ex.getMessage(), is(message));
assertThat(ex.matchingEndpointsDetails, is(Arrays.asList(EndpointOne.class.getName(), EndpointTwo.class.getName())));
assertThat(ex.requestPath, is(requestPath));
assertThat(ex.requestMethod, is(requestMethod));
}