@Test public void testIndex() { final BaseIncludedModelActiveRecord includedModel = mock(BaseIncludedModelActiveRecord.class); final Import expectedImport = mock(Import.class); final String uuid = "456"; when(includedModel.getUUID()).thenReturn(uuid); modelsIndex.index(includedModel, expectedImport); final Import actualImport = modelsIndex.getImport(includedModel); assertEquals(expectedImport, actualImport); }
public void index(final BaseIncludedModelActiveRecord includedModel, final Import anImport) { index.put(key(includedModel), anImport); }
IncludedModelsIndex { public void index(final BaseIncludedModelActiveRecord includedModel, final Import anImport) { index.put(key(includedModel), anImport); } }
IncludedModelsIndex { public void index(final BaseIncludedModelActiveRecord includedModel, final Import anImport) { index.put(key(includedModel), anImport); }  }
IncludedModelsIndex { public void index(final BaseIncludedModelActiveRecord includedModel, final Import anImport) { index.put(key(includedModel), anImport); }  void index(final BaseIncludedModelActiveRecord includedModel,
                      final Import anImport); Import getImport(final BaseIncludedModelActiveRecord includedModel); Collection<Import> getIndexedImports(); void clear(); }
IncludedModelsIndex { public void index(final BaseIncludedModelActiveRecord includedModel, final Import anImport) { index.put(key(includedModel), anImport); }  void index(final BaseIncludedModelActiveRecord includedModel,
                      final Import anImport); Import getImport(final BaseIncludedModelActiveRecord includedModel); Collection<Import> getIndexedImports(); void clear();  }