### Question:
CobolVariableContext implements SubContext<Variable> { @Override public void addUsage(String variable, Location location) { variableUsages.put(variable, location); }  @Override void define(Variable variable, Location location); @Override void addUsage(String variable, Location location); @Override List<Variable> getAll(); @Override boolean contains(String name); @Override Multimap<String, Location> getDefinitions(); @Override Multimap<String, Location> getUsages(); @Override void merge(SubContext<Variable> subContext); Variable get(String name); boolean parentContainsSpecificChild(String rootVariableName, String targetVariableName); static final int LEVEL_77; static final int LEVEL_66; static final int LEVEL_88; }### Answer:
@Test void testAddUsage() { context.addUsage(VAR1, ERROR_LOCALITY_1); context.addUsage(VAR1, ERROR_LOCALITY_2); assertEquals(2, context.getUsages().get(var1.getName()).size()); }