Test void method mockito. and can be used as per the requirement o