### Question:
APICaseVariable extends ConsoleAPI<CaseVariableItem> implements APIHasSearch<CaseVariableItem>,
        APIHasUpdate<CaseVariableItem>, APIHasGet<CaseVariableItem> { @Override public CaseVariableItem runGet(APIID id, List<String> deploys, List<String> counters) { id.setItemDefinition(CaseVariableDefinition.get()); long caseId = id.getPartAsLong(CaseVariableItem.ATTRIBUTE_CASE_ID); String variableName = id.getPart(CaseVariableItem.ATTRIBUTE_NAME); return ((CaseVariableDatastore) getDefaultDatastore()).findById(caseId, variableName); }  @Override CaseVariableItem runUpdate(APIID id, Map<String, String> attributes); @Override ItemSearchResult<CaseVariableItem> runSearch(int page, int resultsByPage, String search, String orders,
            Map<String, String> filters, List<String> deploys, List<String> counters); @Override CaseVariableItem runGet(APIID id, List<String> deploys, List<String> counters); void setAttributeChecker(APICaseVariableAttributeChecker attributeChecker);  }### Answer:
@Test public void getSearchInDatastoreById() throws Exception { long expectedCaseId = 1L; String expectedVariableName = "aName"; APIID apiid = buildAPIID(expectedCaseId, expectedVariableName); apiCaseVariable.runGet(apiid, null, null); verify(datastore).findById(expectedCaseId, expectedVariableName); }