//Should return error object when ISimplePersistence.load fails
@Test
public void testListViewsFailOnLoad() throws JSONException {
ISimplePersistence isp = Mockito.mock( ISimplePersistence.class );
Mockito.when( isp.load( Mockito.eq( View.class ), Mockito.any( Filter.class ) ) )
.thenThrow( new OCommandExecutionException( "Exception" ) );
ViewsEngineForTest vet = new ViewsEngineForTest( Mockito.mock( IPersistenceEngine.class ), isp );
JSONObject result = vet.listViews( vet.getSession().getName() );
Assert.assertNull( result );
}