### Question:
TaskAssigningPersistenceUnitExtensionsLoader implements PersistenceUnitExtensionsLoader { @Override public void loadExtensions(PersistenceUnitInfo info) { LOGGER.debug("Adding the task assigning entities to the current jBPM persistent unit info."); final String classResource = "/" + PlanningTaskImpl.class.getName().replaceAll("[.]", "/") + ".class"; final URL classURL = this.getClass().getResource(classResource); if (classURL != null) { info.getManagedClassNames().add(PlanningTaskImpl.class.getName()); final String classJarLocation = classURL.toExternalForm().split("!")[0].replace(classResource, ""); try { info.getJarFileUrls().add(new URL(classJarLocation)); } catch (Exception e) { info.getJarFileUrls().add(classURL); } LOGGER.debug("Task assigning entities where successfully added."); } else { LOGGER.error("Unexpected error, it was not possible to get resource for: {}", classResource); } } TaskAssigningPersistenceUnitExtensionsLoader(); @Override boolean isEnabled(); @Override void loadExtensions(PersistenceUnitInfo info);  }### Answer:
@Test public void loadExtensions() { List<String> managedClassNames = new ArrayList<>(); when(info.getManagedClassNames()).thenReturn(managedClassNames); extensionsLoader.loadExtensions(info); assertThat(managedClassNames).contains(PlanningTaskImpl.class.getName()); }