@Test
public void testNsKey() {

    assertEquals("", baseDynoDAO.nsKey());
    String[] keys = {"key1", "key2"};
    assertEquals("key1.key2", baseDynoDAO.nsKey(keys));
    Mockito.when(config.getProperty("workflow.namespace.prefix", null)).thenReturn("test");
    assertEquals("test", baseDynoDAO.nsKey());
    assertEquals("test.key1.key2", baseDynoDAO.nsKey(keys));
    Mockito.when(config.getStack()).thenReturn("stack");
    assertEquals("test.stack.key1.key2", baseDynoDAO.nsKey(keys));
}