@Test
public void testGetRemoteTypeName() throws Exception {

    final String nsOverride = "http://geotools.org";
    dataStore.setNamespaceURI(nsOverride);
    assertEquals(TYPE1, dataStore.getRemoteTypeName(new NameImpl(nsOverride, simpleTypeName1.getLocalPart())));
    assertEquals(TYPE2, dataStore.getRemoteTypeName(new NameImpl(nsOverride, simpleTypeName2.getLocalPart())));
    try {
        Name badName = new NameImpl(TYPE1.getNamespaceURI(), TYPE1.getLocalPart() + "2");
        dataStore.getRemoteTypeName(badName);
        fail("Expected NSEE");
    } catch (NoSuchElementException e) {
        assertTrue(true);
    }
}