### Question:
DefaultStorageContainerFactory implements StorageContainerFactory { @Override public StorageContainer createStorageContainer(long scId) { return new StorageContainerImpl( serviceFactory, scId); } DefaultStorageContainerFactory(StorageContainerServiceFactory serviceFactory); @Override StorageContainer createStorageContainer(long scId);  }### Answer:
@Test public void testCreate() { StorageContainerServiceFactory mockServiceFactory = mock(StorageContainerServiceFactory.class); StorageContainerService mockService = mock(StorageContainerService.class); when(mockServiceFactory.createStorageContainerService(anyLong())) .thenReturn(mockService); DefaultStorageContainerFactory factory = new DefaultStorageContainerFactory(mockServiceFactory); StorageContainer sc = factory.createStorageContainer(1234L); assertTrue(sc instanceof StorageContainerImpl); assertEquals(1234L, sc.getId()); }