@@ -0,0 +1,759 @@
+package com.aemreunal.controller;%0A%0A/*%0A ***************************%0A * Copyright (c) 2014      *%0A *                         *%0A * This code belongs to:   *%0A *                         *%0A * @author Ahmet Emre %C3%9Cnal *%0A * S001974                 *%0A *                         *%0A * aemreunal@gmail.com     *%0A * emre.unal@ozu.edu.tr    *%0A *                         *%0A * aemreunal.com           *%0A ***************************%0A */%0A%0Aimport org.junit.Test;%0Aimport org.springframework.security.crypto.codec.Base64;%0A%0Apublic class GenAuth %7B%0A    @Test%0A    public void generateAuth() %7B%0A        String auth = %22adminr:password%22;%0A        byte%5B%5D encodedAuthorisation = Base64.encode(auth.getBytes());%0A        System.out.println(%22Basic %22 + new String(encodedAuthorisation));%0A    %7D%0A%7D%0A

Add OAuth token generating test