### Question:
ProtocolInternalUtils { public static Exception createMetaRangeException(String name, StatusCode statusCode) { switch (statusCode) { case STREAM_EXISTS: return new StreamExistsException(name); case STREAM_NOT_FOUND: return new StreamNotFoundException(name); default: return new InternalServerException("Encountered internal server exception on stream " + name + " : code = " + statusCode); } } private  ProtocolInternalUtils(); static HashStreamRanges createActiveRanges(GetActiveRangesResponse response); static Throwable createRootRangeException(String streamName, StatusCode statusCode); static Exception createMetaRangeException(String name,
                                                     StatusCode statusCode);  }### Answer:
@Test public void testMetaRangeException() { String name = "test-meta-range-exception"; Throwable existCause = createMetaRangeException(name, StatusCode.STREAM_EXISTS); assertTrue(existCause instanceof StreamExistsException); Throwable notFoundCause = createMetaRangeException(name, StatusCode.STREAM_NOT_FOUND); assertTrue(notFoundCause instanceof StreamNotFoundException); }