Refactor PushConfigurationTest.

Change-Id: Iec0aecc64e16052c522eb831f13cadbd2758ae69
Don't allocate unnecessary memory for empty array of Objects in
MethodProperty (#10446).

Change-Id: Ib8e2cfb42494a9dd3efb5ca62ddea9675a1dab1e