@Test
void getCanonicalName_packageIsSetByOption() {

    proto.getOptions().set("java_package", DynamicMessage.Value.createString("java.package"));
    String name = UserTypeUtil.getCanonicalName(message);
    assertEquals("java.package.MessageName", name);
}