@Test
public void testGetInfo() 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);
  CoreElementInfo retrievedElementInfo =
      createCoreElementInfo(elementId, new Id(), Namespace.ROOT_NAMESPACE);
  Response<CoreElementInfo> coreElementInfoResponse = new Response<>(retrievedElementInfo);
  doReturn(coreElementInfoResponse).when(stateAdaptorMock)
      .get(context, elementContext, elementId);
  CoreElementInfo elementInfo = elementManager.getInfo(context, elementContext, elementId);
  Assert.assertEquals(elementInfo, retrievedElementInfo);
}