* @throws Exception If there is some problem inside
*/
@Test
public void closesUnderlyingResource() throws Exception {
final Host host = Mockito.mock(Host.class);
final Resource resource = new ResourceMocker().mock();
Mockito.doReturn(resource).when(host).fetch(
Mockito.any(URI.class),
Mockito.any(Range.class),
Mockito.any(Version.class)
);