adapted junit