epr = new LogicalEPR(URI.create("logical:My%20/%20Category#My%20/%20Name"));
assertEquals("logical:My%20/%20Category#My%20/%20Name", epr.getAddr().getAddress());
assertEquals("My / Category", epr.toService().getCategory());
assertEquals("My / Name", epr.toService().getName());
epr = new LogicalEPR(new PortReference("logical:My%20/%20Category#My%20/%20Name"));
assertEquals("logical:My%20/%20Category#My%20/%20Name", epr.getAddr().getAddress());
assertEquals("My / Category", epr.toService().getCategory());
assertEquals("My / Name", epr.toService().getName());
epr = new LogicalEPR(new EPR(URI.create("logical:My%20/%20Category#My%20/%20Name")));
assertEquals("logical:My%20/%20Category#My%20/%20Name", epr.getAddr().getAddress());
assertEquals("My / Category", epr.toService().getCategory());
assertEquals("My / Name", epr.toService().getName());
epr = new LogicalEPR(new EPR(new PortReference("logical:My%20/%20Category#My%20/%20Name")));
assertEquals("logical:My%20/%20Category#My%20/%20Name", epr.getAddr().getAddress());
assertEquals("My / Category", epr.toService().getCategory());
assertEquals("My / Name", epr.toService().getName());
epr = new LogicalEPR();
epr.setAddr(new PortReference("logical:My%20/%20Category#My%20/%20Name"));
assertEquals("logical:My%20/%20Category#My%20/%20Name", epr.getAddr().getAddress());
assertEquals("My / Category", epr.toService().getCategory());
assertEquals("My / Name", epr.toService().getName());
epr = new LogicalEPR("1234567890 -=`!\"£$%^&*()_+\\|,./;'#[]<>?:@~{}", "1234567890 -=`!\"£$%^&*()_+\\|,./;'#[]<>?:@~{}");