EntityManagerService { public List<EntityModel> getEntities() throws IOException { Map<String, HubUIData> hubUiData = getUiData(); List<EntityModel> entities = new ArrayList<>(); List<HubEntity> entityList = em.getEntities(); for (HubEntity entity : entityList) { EntityModel entityModel = EntityModel.fromJson(entity.getFilename(), entity.toJson()); initializeEntityModelForUI(entityModel); entities.add(entityModel); } return entities; }  List<EntityModel> getLegacyEntities(); List<EntityModel> getEntities(); EntityModel createEntity(EntityModel newEntity); EntityModel saveEntity(EntityModel entity); void deleteEntity(String entity); void deploySearchOptions(); void saveDbIndexes(); void savePii(); void saveAllUiData(List<EntityModel> entities); void saveEntityUiData(EntityModel entity); EntityModel getEntity(String entityName); EntityModel getEntity(String entityName, Boolean extendSubEntities); FlowModel getFlow(String entityName, FlowType flowType, String flowName); FlowModel createFlow(String entityName, FlowType flowType, FlowModel newFlow); void deleteFlow(String entityName, String flowName, FlowType flowType); JsonNode validatePlugin(
        HubConfig config,
        String entityName,
        String flowName,
        PluginModel plugin
    ); void saveFlowPlugin(
        PluginModel plugin
    ); static final String ENTITY_FILE_EXTENSION; }
@Test public void getEntities() throws IOException { List<EntityModel> entities = entityMgrService.getEntities(); assertEquals(1, entities.size()); assertEquals(ENTITY, entities.get(0).getName()); }