### Question:
CacheControlUtils { public static String getMaxAgeForSignedBlock( ChainDataProvider provider, SignedBeaconBlock signedBeaconBlock) { return provider.isFinalized(signedBeaconBlock) ? CACHE_FINALIZED : CACHE_NONE; }  static String getMaxAgeForSignedBlock(
      ChainDataProvider provider, SignedBeaconBlock signedBeaconBlock); static String getMaxAgeForSlot(ChainDataProvider provider, UInt64 slot); static String getMaxAgeForEpoch(ChainDataProvider provider, UInt64 epoch); static String getMaxAgeForBeaconState(
      ChainDataProvider provider, BeaconState beaconState); static final String CACHE_NONE; static final String CACHE_FINALIZED; }### Answer:
@Test void getMaxAgeForSignedBlock_shouldSetCacheNoneIfNotFinalized() { when(provider.isFinalized(signedBlock)).thenReturn(false); String cacheControl = CacheControlUtils.getMaxAgeForSignedBlock(provider, signedBlock); assertThat(cacheControl).isEqualTo(CACHE_NONE); }
@Test void getMaxAgeForSignedBlock_shouldSetIfFinalized() { when(provider.isFinalized(signedBlock)).thenReturn(true); String cacheControl = CacheControlUtils.getMaxAgeForSignedBlock(provider, signedBlock); assertThat(cacheControl).isEqualTo(CACHE_FINALIZED); }