@Test
public void testUpcastObject_UnavailableTypeConversion() {
Upcaster mockUpcaster12 = new StubUpcaster(intermediate1.getType(), intermediate2, Document.class);
ConverterFactory mockConverterFactory = mock(ConverterFactory.class);
CannotConvertBetweenTypesException mockException = new CannotConvertBetweenTypesException("Mock");
when(mockConverterFactory.getConverter(isA(Class.class), isA(Class.class))).thenThrow(
mockException);
UpcasterChain chain = createUpcasterChain(mockConverterFactory, mockUpcaster12);
try {