{
QualifiedName qualifiedName
= new QualifiedName("org.apache.torque.name");
assertEquals("name", qualifiedName.getName());
assertEquals(
new Namespace("org.apache.torque"),
qualifiedName.getNamespace());
qualifiedName = new QualifiedName("name");
assertEquals("name", qualifiedName.getName());
assertEquals(Namespace.ROOT_NAMESPACE, qualifiedName.getNamespace());
qualifiedName = new QualifiedName(".name");
assertEquals("name", qualifiedName.getName());
assertEquals(Namespace.ROOT_NAMESPACE, qualifiedName.getNamespace());
qualifiedName
= new QualifiedName("name", new Namespace("org.apache.torque"));
assertEquals("name", qualifiedName.getName());
assertEquals(
new Namespace("org.apache.torque"),
qualifiedName.getNamespace());
qualifiedName = new QualifiedName("name", (Namespace) null);
assertEquals("name", qualifiedName.getName());
assertEquals(Namespace.ROOT_NAMESPACE, qualifiedName.getNamespace());
qualifiedName = new QualifiedName("name", new Namespace(""));
assertEquals("name", qualifiedName.getName());
assertEquals(Namespace.ROOT_NAMESPACE, qualifiedName.getNamespace());
}