public List<String> get(Component component) {
    Preconditions.checkState(contains(component), "Source line hashes for component %s not cached", component);
    return load(getId(component));
  }
@Test
  public void get_throws_ISE_if_not_cached() {
    Component component = createComponent(1);

    assertThatThrownBy(() -> underTest.get(component))
      .isInstanceOf(IllegalStateException.class)
      .hasMessage("Source line hashes for component ReportComponent{ref=1, key='FILE_KEY', type=FILE} not cached");
  }