### Question:
InboundHandler extends BaseServiceHandler { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final InboundHandler<?> other = (InboundHandler<?>) obj; if (_camelBindingModel == null) { if (other._camelBindingModel != null) { return false; } } else if (!_camelBindingModel.getComponentURI().equals(other._camelBindingModel.getComponentURI())) { return false; } return true; } InboundHandler(final T camelBindingModel, final SwitchYardCamelContext camelContext, final QName serviceName, final ServiceDomain domain); String getRouteId(); @Override void handleMessage(final Exchange switchYardExchange); @Override void handleFault(final Exchange exchange); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void reflexive() { final InboundHandler<?> x = createInboundHandler("direct: assertThat(x.equals(x), is(true)); }
@Test public void symmetric() { final InboundHandler<?> x = createInboundHandler("direct: final InboundHandler<?> y = createInboundHandler("direct: assertThat(x.equals(y), is(true)); assertThat(y.equals(x), is(true)); }
@Test public void nonSymmetric() { final InboundHandler<?> x = createInboundHandler("direct: final InboundHandler<?> y = createInboundHandler("direct: assertThat(x.equals(y), is(false)); assertThat(y.equals(x), is(false)); }
@Test public void transitive() { final InboundHandler<?> x = createInboundHandler("direct: final InboundHandler<?> y = createInboundHandler("direct: final InboundHandler<?> z = createInboundHandler("direct: assertThat(x.equals(y), is(true)); assertThat(y.equals(z), is(true)); assertThat(x.equals(z), is(true)); }
@Test public void nonTransitive() { final InboundHandler<?> x = createInboundHandler("direct: final InboundHandler<?> y = createInboundHandler("direct: final InboundHandler<?> z = createInboundHandler("direct: assertThat(x.equals(y), is(false)); assertThat(y.equals(z), is(false)); assertThat(x.equals(z), is(true)); }
@Test public void nullCheckForEqualsMethod() { final InboundHandler<?> x = createInboundHandler("direct: assertThat(x.equals(null), is(false)); }