@Test
public void canFactoryProcessViewsShouldThrowIllegalArgExceptionIfExtensionIsNullOrEmpty() {

    try {
        ScriptEngineUtils.canFactoryForExtensionProcessViews(null, null);
        fail();
    } catch (IllegalArgumentException e) {
        // expected
    }
    try {
        ScriptEngineUtils.canFactoryForExtensionProcessViews("", null);
        fail();
    } catch (IllegalArgumentException e) {
        // expected
    }
}