@Test
public void testInsertTooBigResource() throws Exception {

    final String ORIG_RES_NAME = "testRes";
    final String DESCRIPTION = "description";
    final String CATEGORY_NAME = "MAP";
    String bigData = createDataSize(100000000);
    boolean error = false;
    assertEquals(0, resourceService.getCount(null));
    try {
        createResource(ORIG_RES_NAME, DESCRIPTION, CATEGORY_NAME, bigData);
    } catch(Exception e) {
        error = true;
    }
    assertEquals(0, resourceService.getCount(null));
    assertTrue(error);
}