verify(configuration, connection, cstmt);
}
@Test
public void testGetMetricRecordID_nullReturn() throws Exception {
SubsetConfiguration configuration = createNiceMock(SubsetConfiguration.class);
Connection connection = createNiceMock(Connection.class);
CallableStatement cstmt = createNiceMock(CallableStatement.class);
// set expectations
expect(configuration.getParent()).andReturn(null);
expect(configuration.getPrefix()).andReturn("prefix");
expect(configuration.getString("databaseUrl")).andReturn("url");
expect(connection.prepareCall("{call dbo.uspGetMetricRecord(?, ?, ?, ?, ?, ?, ?, ?, ?)}")).andReturn(cstmt);
cstmt.setNString(1, "context");
cstmt.setNString(2, "typeName");
cstmt.setNString(3, "nodeName");