I am new to unit testing.
I am trying to perform unit testing on the below code
public void send(Map<String, List<Integer>> mapOf){
mapOf.forEach((k ,v) -> {
v.stream().forEach(o ->{
myList.add(o)
message.push(o);
});
});
}
message.push(o), pushes data to the database. <br/>
How can I Unit test this method?