@Test
public void throwsPerRequestResourcePublicationExceptionWhenTryRegisterTwoResourcesWithTheSamePath() throws Exception {

    resourceBinder.addResource(EchoResource.class, new MultivaluedHashMap<>());
    thrown.expect(ResourcePublicationException.class);
    resourceBinder.addResource(OtherEchoResource.class, new MultivaluedHashMap<>());
}