@Test
public void testOpenRead_existingFile() throws Exception {

    FileInputStream stream = mock(FileInputStream.class);
    when(mockContext.openFileInput(anyString())).thenReturn(stream);
    when(mockAssets.open(anyString())).thenThrow(new IOException());
    assertSame(stream, FileHelper.openRead(mockContext, "file"));
}