@Test
public void testCreateTypeNamesNS() throws Exception {

    final String nsOverride = "http://geotools.org";
    dataStore.setNamespaceURI(nsOverride);
    List<Name> names = dataStore.createTypeNames();
    assertNotNull(names);
    assertEquals(2, names.size());
    assertTrue(names.contains(new NameImpl(nsOverride, simpleTypeName1.getLocalPart())));
    assertTrue(names.contains(new NameImpl(nsOverride, simpleTypeName2.getLocalPart())));
}