public void test_getPreparedPropertiesCompatibility() throws Exception {
  String namespace="newNamespace";
  Properties properties=new Properties();
  properties.put(RemoteRepository.OPTION_CREATE_KB_NAMESPACE,namespace);
  final Properties p=m_mgr.getPreparedProperties(namespace,properties);
  properties.put("com.bigdata.rdf.sail.truthMaintenance","true");
  properties.put("com.bigdata.rdf.store.AbstractTripleStore.quads","true");
  try {
    m_mgr.getPreparedProperties(namespace,properties);
    fail("Expecting: " + HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
  }
 catch (  HttpException ex) {
    assertEquals(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,ex.getStatusCode());
  }
}

public void test_getPreparedPropertiesCompatibility ( ) throws Exception { String namespace = "newNamespace" ; Properties properties = new Properties ( ) ; properties . put ( RemoteRepository . OPTION_CREATE_KB_NAMESPACE , namespace ) ; final Properties p = m_mgr . getPreparedProperties ( namespace , properties ) ; properties . put ( "com.bigdata.rdf.sail.truthMaintenance" , "true" ) ; properties . put ( "com.bigdata.rdf.store.AbstractTripleStore.quads" , "true" ) ; try { m_mgr . getPreparedProperties ( namespace , properties ) ; fail ( "Expecting: " + HttpServletResponse . SC_INTERNAL_SERVER_ERROR ) ; } catch ( HttpException ex ) { assertEquals ( HttpServletResponse . SC_INTERNAL_SERVER_ERROR , ex . getStatusCode ( ) ) ; } }
verify fail create properties if properties are not compatible .
