public class NotificationImplementationLoaderTestCase extends TestCase {
public void testRead() throws Exception {
try {
NotificationImplementationProcessor implementationLoader =
new NotificationImplementationProcessor(new DefaultNotificationImplementationFactory());
XMLStreamReader reader = EasyMock.createMock(XMLStreamReader.class);
EasyMock.expect(reader.getName()).andReturn(NotificationImplementationProcessor.IMPLEMENTATION_NOTIFICATION).times(2);
EasyMock.expect(reader.getAttributeValue(null, "name")).andReturn("TrafficAdvisoryNotificationTestCase");
EasyMock.expect(reader.getAttributeValue(null, "type")).andReturn(null);