  @Test
  public void testThatLoadSucceedsForNativeModule()
      throws IOException, LazyLoadingException, ClassNotFoundException {

    // given
    Mockito.when(mModulePathsNo1Mock.containsNativeLib()).thenReturn(true);
    Mockito.when(mModulePathsNo1Mock.getNativeLibsDirectory()).thenReturn(mNativeLibsDirectoryMock);

    // when
    Class returnedClass = mObjectUnderTest.loadModule(MODULE_NAME_NO1, LazyModule.class.getName());

    // then
    Assert.assertEquals(returnedClass, LazyModule.class);

    Mockito.verify(mLazyLoadListenerMock)
        .moduleLazilyLoaded(Mockito.eq(MODULE_NAME_NO1), Mockito.anyLong());
    Mockito.verify(mNativeModuleLoaderMock).load(Mockito.eq(mModulePathsNo1Mock));
    Mockito.verifyZeroInteractions(mCustomClassLoaderMock);
  }