def METHOD_NAME(self):
    class Offset(tzinfo):
        def utcoffset(self, dt):
            return timedelta(hours=1, minutes=15)
        def dst(self, dt):
            return timedelta(seconds=-900)
        def tzname(self,dt):
            return "Foo/Bar"
    self.assertTrue(hasattr(datetime, "__tojava__"))
    x = datetime(2007, 1, 3, tzinfo=Offset())
    y = x.__tojava__(Calendar)
    self.assertIsInstance(y, GregorianCalendar)
    self.assertEqual(y.get(Calendar.YEAR), 2007)
    self.assertEqual(y.get(Calendar.MONTH), 0)
    self.assertEqual(y.get(Calendar.DAY_OF_MONTH), 3)
    self.assertEqual(y.get(Calendar.HOUR), 0)
    self.assertEqual(y.get(Calendar.MINUTE), 0)
    self.assertEqual(y.get(Calendar.SECOND), 0)
    self.assertEqual(y.getTimeZone().getID(), "UTC")
    self.assertEqual(y.get(Calendar.DST_OFFSET), -900 * 1000)
    self.assertEqual(y.get(Calendar.ZONE_OFFSET), 4500 * 1000)