shannon's junit code