I am very new to junit and java. kindly let me know how write the junit for this code.
void Abc(Objsect o) {
Attr[] attrd= o.changeAttr();
if (attrd.length > 0) {
for (int i = 0; i < attrd.length; i++) {
if (attrd[i].toString().contains(PropertyMessage.fsc_pra)) {
ifModified = true;
}
}
}
}