Initial java code
Initial tests