

package org.nanocontainer.remoting.jmx;

import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;

import junit.framework.TestCase;


/**
 * @author Jörg Schaible
 */
public class PredefinedObjectNameFactoryTest extends TestCase {

    public void testSpecifiedDomain() throws MalformedObjectNameException {
        final ObjectName key = new ObjectName("JUnit:type=null");
        final ObjectNameFactory factory = new PredefinedObjectNameFactory();
        final ObjectName objectName = factory.create(key, null);
        assertSame(key, objectName);
    }

}
