I have an example in my lecture notes where the following is stated:
Let $\delta_{x_k}$ be the Dirac measure at $x$. Note that for $\mu(A)=\sum\limits_{k=1}^{n}\alpha_k\cdot\delta_{x_k}$ the integral is the sum
$\hspace{5cm}$ $\int_\Omega fd\mu=\sum\limits_{k=1}^{n}\alpha_k\cdot f(x_k)\hspace{2cm}(1.1)$
In particular $\int_\Omega fd\delta_x=f(x)$.
They don't mention any particular measure space here which is anyways irrelevant I think. My question now is how they derived the sum expression of the integral in $(1.1)$ and then afterwards the integral w.r.t to $\delta_x$
$\int f d\mu=\sum\limits_{k=1}^{n} \int_{\{x\}} fd\mu+\int_A fd\mu$ where $A=\Omega \setminus \{x_1,x_2,..,x_n\}$. The last term is $0$ because $\mu(A)=0$. On $\{x\}$ the function $f$ has the consatnt value $f(x_k)$. Hence $\int_{\{x\}} fd\mu=f(k) \mu (\{x_k\})=f(k)\alpha_k$.