@Test
public void testAddInformationFromZip() throws Exception {

    org.osgi.service.provisioning.ProvisioningService provService = mock(org.osgi.service.provisioning.ProvisioningService.class);
    ProvisioningService mbean = new ProvisioningService(provService);
    ProvisioningService spiedMBean = spy(mbean);
    
    InputStream is = mock(InputStream.class);
    doReturn(is).when(spiedMBean).createStream("file://prov.zip");
    
    spiedMBean.addInformationFromZip("file://prov.zip");
    verify(provService).addInformation(any(ZipInputStream.class));
    verify(is).close();
    
}