### Question:
JbpmKieServerExtension implements KieServerExtension { protected void registerDefaultQueryDefinitions() { try (InputStream qdStream = getDefaultQueryDefinitionsInputStream()) { loadAndRegisterQueryDefinitions(qdStream, MarshallerFactory.getMarshaller(MarshallingFormat.JSON, this.getClass().getClassLoader()), null); } catch (Exception e) { logger.error("Error when loading default query definitions from default-query-definitions.json", e); } }  @Override boolean isInitialized(); @Override boolean isActive(); @Override void init(KieServerImpl kieServer, KieServerRegistry registry); @Override void destroy(KieServerImpl kieServer, KieServerRegistry registry); @Override void serverStarted(); @SuppressWarnings("unchecked") @Override void createContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override boolean isUpdateContainerAllowed(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void prepareContainerUpdate(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void updateContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void activateContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void deactivateContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void disposeContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override List<Object> getAppComponents(SupportedTransports type); @Override T getAppComponents(Class<T> serviceType); @Override String getImplementedCapability(); @Override List<Object> getServices(); @Override String getExtensionName(); @Override Integer getStartOrder(); @Override String toString(); @Override List<Message> healthCheck(boolean report); static final String EXTENSION_NAME; }### Answer:
@Test public void testLoadDefaultQueryDefinitions() { extension.registerDefaultQueryDefinitions(); verify(queryService, times(10)).replaceQuery(any()); }