<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:jpa="http://www.springframework.org/schema/data/jpa"
	xmlns:repository="http://www.springframework.org/schema/data/repository"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/data/repository https://www.springframework.org/schema/data/repository/spring-repository.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/data/jpa https://www.springframework.org/schema/data/jpa/spring-jpa.xsd
		http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd">

    <bean id="entityManagerFactory" class="org.mockito.Mockito" factory-method="mock">
        <constructor-arg value="jakarta.persistence.EntityManagerFactory" />
    </bean>
    
    <bean id="secondEntityManagerFactory" class="org.mockito.Mockito" factory-method="mock">
        <constructor-arg value="jakarta.persistence.EntityManagerFactory" />
    </bean>
    
    <jpa:repositories base-package="org.springframework.data.jpa.repository.sample" entity-manager-factory-ref="secondEntityManagerFactory">
    	<repository:include-filter type="assignable" expression="org.springframework.data.jpa.repository.sample.UserRepository" />
    </jpa:repositories>

</beans>
