### Question:
ElementManagerImpl implements ElementManager { @Override public CoreElement get(SessionContext context, ElementContext elementContext, Id elementId) { Namespace namespace = getValidatedNamespace(context, elementContext, elementId, ErrorCode.ZU_ELEMENT_GET); if (namespace == null) { return null; } Response<CoreElement> response = getCollaborationAdaptor(context).getElement(context, elementContext, namespace, elementId); ValidationUtil.validateResponse(response, logger, ErrorCode.ZU_ELEMENT_GET); return response.getValue(); }  @Override Collection<CoreElementInfo> list(SessionContext context, ElementContext elementContext,
                                          Id elementId); @Override CoreElementInfo getInfo(SessionContext context, ElementContext elementContext,
                                 Id elementId); @Override CoreElement get(SessionContext context, ElementContext elementContext,
                         Id elementId); @Override CoreElementConflict getConflict(SessionContext context, ElementContext elementContext,
                                         Id elementId); @Override CoreElement save(SessionContext context, ElementContext elementContext,
                          CoreElement element, String message); @Override CoreMergeResult resolveConflict(SessionContext context, ElementContext elementContext,
                                         CoreElement element, Resolution resolution); @Override SearchResult search(SessionContext context, SearchCriteria searchCriteria); @Override void saveMergeChange(SessionContext context, Space space, ElementContext elementContext,
                              Collection<CoreElement> elements);  }### Answer:
@Test public void testGet() throws Exception { SessionContext context = TestUtils.createSessionContext(USER, "test"); Id itemId = new Id(); Id versionId = new Id(); Id elementId = new Id(); ElementContext elementContext = new ElementContext(itemId, versionId); Namespace namespace = Namespace.ROOT_NAMESPACE; doReturn(new Response<>(namespace)) .when(stateAdaptorMock).getNamespace(context, itemId, elementId); CoreElement retrievedCoreElement = new CoreElement(); Response<CoreElement> CoreElementRes = new Response<>(retrievedCoreElement); doReturn(CoreElementRes).when(collaborationAdaptorMock) .getElement(context, elementContext, namespace, elementId); CoreElement element = elementManager.get(context, elementContext, elementId); Assert.assertEquals(element, retrievedCoreElement); }