you can replace by @Test(expected=OpenShiftException.class)