### Question:
MsoCommonUtils { protected MsoException ioExceptionToMsoException(IOException e, String context) { MsoAdapterException me = new MsoAdapterException(e.getMessage(), e); me.addContext(context); me.setCategory(MsoExceptionCategory.INTERNAL); logger.error("{} {} An exception occured on {}: ", MessageEnum.RA_GENERAL_EXCEPTION_ARG, ErrorCode.DataError.getValue(), context, e); return me; }  T executeAndRecordOpenstackRequest(OpenStackRequest<T> request); MsoException keystoneErrorToMsoException(OpenStackBaseException e, String context); boolean isNullOrEmpty(String s);  }### Answer:
@Test public void testIoExceptionToMsoException() { IOException exception = new IOException("IOExceptionTestMessage"); MsoException msoException = commonUtils.ioExceptionToMsoException(exception, "ContextError"); assertTrue(msoException instanceof MsoAdapterException); assertEquals("ContextError", msoException.getContext()); assertTrue(MsoExceptionCategory.INTERNAL.equals(msoException.getCategory())); }