assertExceptions("uninferrableException");
}
private void assertExceptions(String methodName, Class<? extends Exception>... expectedExceptions) throws Exception
{
ThriftMethodMetadata metadata = new ThriftMethodMetadata("DummyService", DummyService.class.getMethod(methodName), new ThriftCatalog());
Map<Short, Type> actualIdMap = new TreeMap<>();
Map<Short, Type> expectedIdMap = new TreeMap<>();
for (Map.Entry<Short, ThriftType> entry : metadata.getExceptions().entrySet()) {
actualIdMap.put(entry.getKey(), entry.getValue().getJavaType());