with junit testing