@Test
public void testForParsePropertyKey() throws IOException {

  JDBCInterpreter t = new JDBCInterpreter(new Properties());
  
  assertEquals(t.getPropertyKey("(fake) select max(cant) from test_table where id >= 2452640"),
      "fake");
  
  assertEquals(t.getPropertyKey("() select max(cant) from test_table where id >= 2452640"),
      "");
  
  assertEquals(t.getPropertyKey(")fake( select max(cant) from test_table where id >= 2452640"),
      "default");
      
  // when you use a %jdbc(prefix1), prefix1 is the propertyKey as form part of the cmd string
  assertEquals(t.getPropertyKey("(prefix1)\n select max(cant) from test_table where id >= 2452640"),
      "prefix1");
  
  assertEquals(t.getPropertyKey("(prefix2) select max(cant) from test_table where id >= 2452640"),
          "prefix2");
  
  // when you use a %jdbc, prefix is the default
  assertEquals(t.getPropertyKey("select max(cant) from test_table where id >= 2452640"),
          "default");
}