Solved
how to write junit for this code
I am not able to write the junit for private method
Node metaNode = session.getNode(metadataNode);
getPropeties(metaNode, generatedPath, workItem, wfsession);//till this its working
private void getPropeties(Node metadataNode,String generatedPath,WorkItem workItem,WorkflowSession wfsession) throws ValueFormatException, PathNotFoundException, RepositoryException, WorkflowException {
String prop1=metadataNode.getProperty("prop1").getValue().toString();
}