Visa Inc. Interview Question

write jUnit for the same and mock db call