add junit tests for BeerServerComponentTest.java