OAuth2 with Office365 Java code samples

Are there code samples available for using EWS with OAuth2 and Office365 in Java?

@bascouwenberg,

I have observed your requirements and suggest you to please visit following thread link for your convenience of available sample code.