@Override
            public List<ApiNamespaceBean> getNamespaces(String currentUser) {
                List<ApiNamespaceBean> rval = new ArrayList<>();

                ApiNamespaceBean bean = new ApiNamespaceBean();
                bean.setCurrent(true);
                bean.setName("current");
                bean.setOwnedByUser(true);
                rval.add(bean);

                bean = new ApiNamespaceBean();
                bean.setCurrent(false);
                bean.setName("ns1");
                bean.setOwnedByUser(true);
                rval.add(bean);

                bean = new ApiNamespaceBean();
                bean.setCurrent(false);
                bean.setName("ns2");
                bean.setOwnedByUser(false);
                rval.add(bean);

                bean = new ApiNamespaceBean();
                bean.setCurrent(false);
                bean.setName("ns3");
                bean.setOwnedByUser(false);
                rval.add(bean);

                return rval;
            }
@see io.apiman.manager.api.core.IApiCatalog#getNamespaces(java.lang.String)
manager/test/api/src/main/java/io/apiman/manager/test/server/TestCdiFactory.java