PartnerConnection conn = getPartnerConnection();
String ns = getNamespaceFromCtx();
if (ns != null && ns != "") {
sObject = ns + NAME_SEPARATOR + sObject;
}
DescribeSObjectResult describeSObjectResult = conn.describeSObject(sObject);
com.sforce.soap.partner.Field[] fields = describeSObjectResult.getFields();
Assert.assertEquals(fields.length, expectedFieldNames.length, "Unexpected number of fields on object " + sObject);
ArrayList<String> fieldNames = new ArrayList<String>();
for (com.sforce.soap.partner.Field field : fields) {
if (field.isCustom() && ns != null && ns != "") {