Junit tests for decorator pattern