@Test
public void checkTryCatchReturnsValidCode() {

    assertThat(com.tryCatch(action, "Exception ex", "Exception has been thrown"), is(equalTo("try{" + action + "} catch (Exception ex) {Exception has been thrown}")));
}