@Test
public void getTypeFaceFromAssetsFailTest() throws Exception {

    PowerMockito.mockStatic(Typeface.class);
    PowerMockito.mockStatic(Log.class);
    when(mMockContext.getAssets()).thenReturn(mMockedAssetManager);
    when(Typeface.createFromAsset(mMockedAssetManager, ASSET_PATH)).thenThrow(new RuntimeException());
    when(Log.e(anyString(), anyString())).thenReturn(1);
    Typeface typeface = mTypeFaceProvider.getTypeFaceFromAssets(ASSET_PATH);
    PowerMockito.verifyStatic(times(2));
    assert (typeface == null);
    PowerMockito.verifyNoMoreInteractions();
}