public class QueryCreateHandlerTest {
@Test
public void testHandleRequest() throws Exception {
Request request = createNiceMock(Request.class);
ResourceInstance resourceInstance = createNiceMock(ResourceInstance.class);
ResourceDefinition resourceDefinition = createNiceMock(ResourceDefinition.class);
ResourceInstanceFactory resourceInstanceFactory = createNiceMock(ResourceInstanceFactory.class);
Query query = createNiceMock(Query.class);
Predicate predicate = createNiceMock(Predicate.class);
Result result = createNiceMock(Result.class);
ResourceInstance subResource = createNiceMock(ResourceInstance.class);
ResourceDefinition subResourceDefinition = createNiceMock(ResourceDefinition.class);
ClusterController controller = createNiceMock(ClusterController.class);
Schema serviceSchema = createNiceMock(Schema.class);
Schema componentSchema = createNiceMock(Schema.class);
String resourceKeyProperty = "resourceKeyProperty";
String createKeyProperty = "createKeyProperty";
Resource resource1 = createNiceMock(Resource.class);
Resource resource2 = createNiceMock(Resource.class);
PersistenceManager pm = createNiceMock(PersistenceManager.class);
ResourceInstance createResource = createNiceMock(ResourceInstance.class);
RequestStatus status = createNiceMock(RequestStatus.class);
Resource statusResource1 = createNiceMock(Resource.class);
Resource statusResource2 = createNiceMock(Resource.class);
RequestHandler readHandler = createStrictMock(RequestHandler.class);
ResultStatus resultStatus = createNiceMock(ResultStatus.class);