drop java 1.6 compatibility; add junit rule for lightweight integration testing